PublicSlashCommandFailedChecksEvent

data class PublicSlashCommandFailedChecksEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val reason: Key) : SlashCommandFailedChecksEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command's checks fail.

Constructors

Link copied to clipboard
constructor(command: PublicSlashCommand<*, *>, event: ChatInputCommandInteractionCreateEvent, reason: Key)

Properties

Link copied to clipboard
open override val command: PublicSlashCommand<*, *>

Command object that this event concerns.

Link copied to clipboard
@KordPreview
open override val customContext: MutableStringKeyedMap<Any>
Link copied to clipboard
open override val event: ChatInputCommandInteractionCreateEvent

Event object that triggered this invocation.

Link copied to clipboard

Provides direct access to the map KordEx registers for Event.customContext.

Link copied to clipboard
open val gateway: Gateway
Link copied to clipboard
open override val kord: Kord
Link copied to clipboard
open override val reason: Key

Human-readable failure reason.

Link copied to clipboard
open override val shard: Int

Functions

Link copied to clipboard
open override fun getKoin(): Koin

Get the associated Koin instance.