package newcommands
- Alphabetic
- By Inheritance
- newcommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Command[A] = ComplexCommand[A, NotUsed]
-
trait
CommandBuilder[+M[_], A] extends CommandFunction[CommandMessage, M]
A CommandFunction from a command message to an output.
A CommandFunction from a command message to an output. Used for creating commands.
- M
The command message type used by the command.
- A
The argument type of this command builder.
- class CommandConnector extends AnyRef
-
abstract
class
CommandController extends AnyRef
The base command controller that you will place your commands in.
The base command controller that you will place your commands in. Contains partially applied types, and the Command builder object.
-
case class
CommandDescription(name: String, description: String, usage: String = "", extra: Map[String, String] = Map.empty) extends Product with Serializable
Represents non essential information about a command intended to be displayed to an end user.
Represents non essential information about a command intended to be displayed to an end user.
- name
The display name of a command.
- description
The description of what a command does.
- usage
How to use the command. Does not include the name or prefix.
- extra
Extra stuff about the command that you yourself decide on.
-
case class
CommandError(error: String, channel: TChannel, cache: CacheSnapshot) extends Product with Serializable
Represents an error encountered when executing an command.
Represents an error encountered when executing an command.
- error
The errror message
- channel
The channel the error occoured in
- cache
A cache snapshot tied to the execution of the command
-
trait
CommandFunction[-I[_], +O[_]] extends AnyRef
A mapping over command builders.
A mapping over command builders.
- I
The input message type
- O
The output message type
-
trait
CommandMessage[+A] extends AnyRef
A message sent with an invocation of a command.
A message sent with an invocation of a command.
- A
The parsed argument type
-
trait
CommandTransformer[-I[_], +O[_]] extends CommandFunction[I, O]
A CommandFunction that can't fail, but might return a different message type.
A CommandFunction that can't fail, but might return a different message type.
- I
The input message type
- O
The output message type
-
trait
ComplexCommand[A, Mat] extends AnyRef
A constructed command execution.
A constructed command execution.
- A
The argument type of the command
- Mat
The materialized result of creating this command
- trait DeriveMessageParser extends AnyRef
-
trait
GuildCommandMessage[+A] extends CommandMessage[A]
A message sent with the invocation of a guild command
A message sent with the invocation of a guild command
- A
The parsed argument type
- trait GuildMemberCommandMessage[+A] extends GuildCommandMessage[A] with UserCommandMessage[A]
- type GuildUserCommandMessage[+A] = GuildCommandMessage[A] with UserCommandMessage[A]
-
trait
MessageParser[A] extends AnyRef
MessageParser is a typeclass to simplify parsing messages.
MessageParser is a typeclass to simplify parsing messages. It can derive instances for any ADT, and makes it much easier to work with messages.
- A
The type to parse.
- trait MessageParserInstances extends AnyRef
- type NamedCommand[A] = NamedComplexCommand[A, NotUsed]
-
trait
NamedCommandBuilder[+M[_], A] extends CommandBuilder[M, A]
A CommandFunction from a command message to an output.
A CommandFunction from a command message to an output. Used for creating commands.
- M
The command message type used by the command.
- A
The argument type of this command builder.
-
trait
NamedComplexCommand[A, Mat] extends ComplexCommand[A, Mat]
A constructed command execution with a name.
A constructed command execution with a name.
- A
The argument type of the command
- Mat
The materialized result of creating this command
-
trait
UserCommandMessage[+A] extends CommandMessage[A]
A message sent with the invocation of command used by a user
A message sent with the invocation of command used by a user
- A
The parsed argument type
- trait VoiceGuildCommandMessage[+A] extends GuildCommandMessage[A] with UserCommandMessage[A]
- type VoiceGuildMemberCommandMessage[+A] = GuildMemberCommandMessage[A] with VoiceGuildCommandMessage[A]
- class WrappedCommandMessage[A] extends CommandMessage[A]
Value Members
- object CommandBuilder
- object CommandError extends Serializable
- object CommandFunction
- object CommandMessage
- object CommandTransformer
- object GuildCommandMessage
- object GuildMemberCommandMessage
- object MessageParser extends MessageParserInstances with DeriveMessageParser
- object UserCommandMessage
- object VoiceGuildCommandMessage