case class SlashCommand[InteractionObj[_], A] extends SlashCommandOrGroup with Product with Serializable
- Source
- commands.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SlashCommand
- Serializable
- Product
- Equals
- SlashCommandOrGroup
- CreatedApplicationCommand
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def commandType: ApplicationCommandType
The application command type.
The application command type.
- Definition Classes
- SlashCommandOrGroup → CreatedApplicationCommand
- val defaultPermission: Boolean
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- val description: Option[String]
Description of the application command.
Description of the application command.
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- val extra: Map[String, String]
Extra info associated with the command.
Extra info associated with the command.
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- val filter: DataInteractionTransformer[CommandInteraction, InteractionObj]
- val handle: (InteractionObj[A]) => InteractionResponse
- def handleRaw(clientId: String, interaction: RawInteraction, cacheSnapshot: Option[CacheSnapshot]): InteractionResponse
Handle an interaction with the application command.
Handle an interaction with the application command.
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- def makeCommandOptions: Seq[ApplicationCommandOption]
Convert the parameters of this command into ApplicationCommandOption s.
Convert the parameters of this command into ApplicationCommandOption s.
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- val name: String
Name of the application command.
Name of the application command.
- Definition Classes
- SlashCommand → CreatedApplicationCommand
- val paramList: Either[=:=[NotUsed, A], ParamList[A]]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def toCommandOption: ApplicationCommandOption
Convert this command to an ApplicationCommandOption.
Convert this command to an ApplicationCommandOption.
- Definition Classes
- SlashCommand → SlashCommandOrGroup