trait MessageParserInstances extends AnyRef
- Alphabetic
- By Inheritance
- MessageParserInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allStringsParser: MessageParser[List[String]]
A parser that will return all the strings passed to it.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val booleanParser: MessageParser[Boolean]
- implicit val byteParser: MessageParser[Byte]
- implicit val channelParser: MessageParser[Channel]
- val channelRegex: Regex
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- implicit val doubleParser: MessageParser[Double]
- implicit val emojiParser: MessageParser[Emoji]
- val emojiRegex: Regex
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail[A](e: String): MessageParser[A]
A message parser that always fails.
A message parser that always fails.
- e
The error to return
- implicit val floatParser: MessageParser[Float]
- 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.
- 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
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- implicit val guildChannelParser: MessageParser[GuildChannel]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- implicit val intParser: MessageParser[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- implicit val longParser: MessageParser[Long]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- implicit val notUsedParser: MessageParser[NotUsed]
A parser that will only succeed if there are no strings left.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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
- implicit def optional[A](implicit parser: MessageParser[A]): MessageParser[Option[A]]
- def orElseWith[A, B, C](parse1: MessageParser[A], parse2: MessageParser[B])(combine: (Either[A, B]) => C): MessageParser[C]
- implicit val remainingStringParser: MessageParser[RemainingAsString]
- implicit val roleParser: MessageParser[Role]
- val roleRegex: Regex
- implicit val shortParser: MessageParser[Short]
- 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
- implicit val stringParser: MessageParser[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val textChannelParser: MessageParser[TextChannel]
- implicit val textGuildChannelParser: MessageParser[TextGuildChannel]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit: MessageParser[Unit]
- implicit val userParser: MessageParser[User]
- val userRegex: Regex
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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
- 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.