Slash Command Event
open class SlashCommandEvent<T : TypeContainer>( val rawInputs: RawInputs, val discord: Discord, val message: Message?, val author: User, val channel: MessageChannel, val guild: Guild? = null, val interaction: ApplicationCommandInteraction?) : CommandEvent<T> , SlashResponder
Content copied to clipboard
An event fired by a slash command.
Parameters
interaction
Initial ApplicationCommandInteraction event.
Constructors
Link copied to clipboard
fun SlashCommandEvent( rawInputs: RawInputs, discord: Discord, message: Message?, author: User, channel: MessageChannel, guild: Guild? = null, interaction: ApplicationCommandInteraction?)
Content copied to clipboard
Functions
Link copied to clipboard
Clone this event's context data with new inputs.
Link copied to clipboard
open suspend fun respondMenu(menuBuilder: suspend MenuBuilder.() -> Unit): Message
Content copied to clipboard
Respond with a Menu.
Link copied to clipboard
open suspend fun respondPublic(message: Any = "", embed: suspend EmbedBuilder.() -> Unit? = null): InteractionResponseBehavior?
Content copied to clipboard
Create a public slash response with text and/or an embed.