class UserCommandBuilder[Interaction[_]] extends CommandBuilder[Interaction, (User, Option[InteractionRawGuildMember])]
Ordering
- Alphabetic
- By Inheritance
Inherited
- UserCommandBuilder
- CommandBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new UserCommandBuilder(defaultPermission: Boolean, transformer: DataInteractionTransformer[CommandInteraction, Interaction], extra: Map[String, String])
Value Members
- def andThen[To2[_]](nextTransformer: DataInteractionTransformer[Interaction, To2]): UserCommandBuilder[To2]
Use a new transformer on the current transformer.
Use a new transformer on the current transformer.
- Definition Classes
- UserCommandBuilder → CommandBuilder
- def defaultPermission(permission: Boolean): UserCommandBuilder[Interaction]
- Definition Classes
- UserCommandBuilder → CommandBuilder
- val defaultPermission: Boolean
- Definition Classes
- UserCommandBuilder → CommandBuilder
- val extra: Map[String, String]
Extra info to associate with the command.
Extra info to associate with the command.
- Definition Classes
- UserCommandBuilder → CommandBuilder
- def handle(name: String)(handler: (Interaction[(User, Option[InteractionRawGuildMember])]) => InteractionResponse): UserCommand[Interaction]
Create a new user command.
Create a new user 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
- UserCommandBuilder → CommandBuilder
- def withExtra(extra: Map[String, String]): UserCommandBuilder[Interaction]
Sets the extra info associated with the command.
Sets the extra info associated with the command.
- Definition Classes
- UserCommandBuilder → CommandBuilder
- def withTransformer[NewTo[_]](transformer: DataInteractionTransformer[CommandInteraction, NewTo]): UserCommandBuilder[NewTo]
Sets the transformer to process the interaction first.
Sets the transformer to process the interaction first.
- Definition Classes
- UserCommandBuilder → CommandBuilder