SlashCommandContext
open class SlashCommandContext<C : SlashCommandContext<C, A, M>, A : Arguments, M : ModalForm>(val event: ChatInputCommandInteractionCreateEvent, val command: SlashCommand<C, A, M>, val cache: MutableStringKeyedMap<Any>) : ApplicationCommandContext
Slash command context, containing everything you need for your slash command's execution.
Parameters
event
Event that triggered this slash command invocation.
Inheritors
Constructors
Link copied to clipboard
constructor(event: ChatInputCommandInteractionCreateEvent, command: SlashCommand<C, A, M>, cache: MutableStringKeyedMap<Any>)
Properties
Link copied to clipboard
The permissions applicable to your bot in this execution context (guild, roles, channels), or null if this command wasn't executed on a guild.
Link copied to clipboard
Current bot setting object.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Cached locale variable, stored and retrieved by getLocale.
Link copied to clipboard
Current Sentry context, containing breadcrumbs and other goodies.
Functions
Link copied to clipboard
Extract channel information from event data, if that context is available.
Link copied to clipboard
Resolve the locale for this context, storing it in resolvedLocale.
Link copied to clipboard
suspend fun CommandContext.waitForResponse(timeout: Long, filter: suspend MessageCreateEvent.() -> Boolean = { true }): Message?
Wait for a message by the user that invoked this command, in the channel it was invoked in, using the given timeout (in milliseconds) and extra filter function.