class MessageCommandBuilder[Interaction[_]] extends CommandBuilder[Interaction, InteractionPartialMessage]
Ordering
- Alphabetic
- By Inheritance
Inherited
- MessageCommandBuilder
- CommandBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MessageCommandBuilder(defaultPermission: Boolean, transformer: DataInteractionTransformer[CommandInteraction, Interaction], extra: Map[String, String])
Value Members
- def andThen[To2[_]](nextTransformer: DataInteractionTransformer[Interaction, To2]): MessageCommandBuilder[To2]
Use a new transformer on the current transformer.
Use a new transformer on the current transformer.
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- def defaultPermission(permission: Boolean): MessageCommandBuilder[Interaction]
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- val defaultPermission: Boolean
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- val extra: Map[String, String]
Extra info to associate with the command.
Extra info to associate with the command.
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- def handle(name: String)(handler: (Interaction[InteractionPartialMessage]) => InteractionResponse): MessageCommand[Interaction]
Create a new message command.
Create a new message command.
- name
The name of the command.
- handler
The handler for the command.
- val transformer: DataInteractionTransformer[CommandInteraction, Interaction]
A transformer to do base processing of the interaction before handling it.
A transformer to do base processing of the interaction before handling it.
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- def withExtra(extra: Map[String, String]): MessageCommandBuilder[Interaction]
Sets the extra info associated with the command.
Sets the extra info associated with the command.
- Definition Classes
- MessageCommandBuilder → CommandBuilder
- def withTransformer[NewTo[_]](transformer: DataInteractionTransformer[CommandInteraction, NewTo]): MessageCommandBuilder[NewTo]
Sets the transformer to process the interaction first.
Sets the transformer to process the interaction first.
- Definition Classes
- MessageCommandBuilder → CommandBuilder