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()
  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. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. implicit val floatParser: MessageParser[Float]
  19. 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.

  20. 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

  21. 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.

  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. implicit val guildChannelParser: MessageParser[GuildChannel]
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. implicit val intParser: MessageParser[Int]
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. 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

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

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

  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. 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

  34. implicit def optional[A](implicit parser: MessageParser[A]): MessageParser[Option[A]]
  35. def orElseWith[A, B, C](parse1: MessageParser[A], parse2: MessageParser[B])(combine: (Either[A, B]) => C): MessageParser[C]
  36. implicit val remainingStringParser: MessageParser[RemainingAsString]
  37. implicit val roleParser: MessageParser[Role]
  38. val roleRegex: Regex
  39. implicit val shortParser: MessageParser[Short]
  40. 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

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

  53. 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.

Inherited from AnyRef

Inherited from Any

Ungrouped