t

ackcord.commands

MessageParserInstances

trait MessageParserInstances extends AnyRef

Source
MessageParser.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessageParserInstances
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val allStringsParser: MessageParser[List[String]]

    A parser that will return all the strings passed to it.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. implicit val booleanParser: MessageParser[Boolean]
  7. implicit val byteParser: MessageParser[Byte]
  8. implicit val channelParser: MessageParser[Channel]
  9. val channelRegex: Regex
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. implicit val doubleParser: MessageParser[Double]
  12. implicit val emojiParser: MessageParser[Emoji]
  13. val emojiRegex: Regex
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def fail[A](e: String): MessageParser[A]

    A message parser that always fails.

    A message parser that always fails.

    e

    The error to return

  17. implicit val floatParser: MessageParser[Float]
  18. def fromEither[A](f: (String) => Either[String, A]): MessageParser[A]

    Parse a string into a try, where the left contains the error message

    Parse a string into a try, where the left contains the error message

    A

    The type to parse

    f

    The function to transform the string with.

  19. def fromString[A](f: (String) => A): MessageParser[A]

    Create a parser from a string

    Create a parser from a string

    A

    The type to parse

    f

    The function to transform the string with

  20. def fromTry[A](f: (String) => Try[A]): MessageParser[A]

    Parse a string with a try

    Parse a string with a try

    A

    The type to parse

    f

    The function to transform the string with.

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. implicit val guildChannelParser: MessageParser[GuildChannel]
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  24. implicit val intParser: MessageParser[Int]
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def literal(lit: String, caseSensitive: Boolean = true): MessageParser[String]

    Matches a literal string

    Matches a literal string

    lit

    The string to match

    caseSensitive

    If the match should be case insensitive

  27. implicit val longParser: MessageParser[Long]
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. implicit val notUsedParser: MessageParser[NotUsed]

    A parser that will only succeed if there are no strings left.

  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. def oneOf[A](seq: Seq[MessageParser[A]]): MessageParser[A]

    Matches one of the parsers passed in

    Matches one of the parsers passed in

    seq

    The parsers to try

  33. implicit def optional[A](implicit parser: MessageParser[A]): MessageParser[Option[A]]
  34. def orElseWith[A, B, C](parse1: MessageParser[A], parse2: MessageParser[B])(combine: (Either[A, B]) => C): MessageParser[C]
  35. implicit val remainingStringParser: MessageParser[RemainingAsString]
  36. implicit val roleParser: MessageParser[Role]
  37. val roleRegex: Regex
  38. implicit val shortParser: MessageParser[Short]
  39. def startsWith(prefix: String, caseSensitive: Boolean = true, consumeAll: Boolean = false): MessageParser[String]

    Matches a string that starts with a prefix

    Matches a string that starts with a prefix

    prefix

    The prefix to look for

    caseSensitive

    If the matching should be case sensitive

    consumeAll

    If the whole string should be consumed if only part of it was matched

  40. implicit val stringParser: MessageParser[String]
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. implicit val textChannelParser: MessageParser[TextChannel]
  43. implicit val textGuildChannelParser: MessageParser[TextGuildChannel]
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def unit: MessageParser[Unit]
  46. implicit val userParser: MessageParser[User]
  47. val userRegex: Regex
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. def withTry[A](f: (String) => A): MessageParser[A]

    Parse a string with a function that can throw

    Parse a string with a function that can throw

    A

    The type to parse

    f

    The function to transform the string with. This can throw an exception

  52. def withTryCustomError[A](errorMessage: (String) => String)(f: (String) => A): MessageParser[A]

    Same as withTry but with a custom error.

    Same as withTry but with a custom error.

    A

    The type to parse

    errorMessage

    The error message to use

    f

    The function to transform the string with.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped