EphemeralMessageCommandFailedWithExceptionEvent

data class EphemeralMessageCommandFailedWithExceptionEvent(val command: EphemeralMessageCommand<*>, val event: MessageCommandInteractionCreateEvent, val throwable: Throwable) : MessageCommandFailedWithExceptionEvent<EphemeralMessageCommand<*>>

Event emitted when an ephemeral message command invocation fails with an exception.

Constructors

constructor(command: EphemeralMessageCommand<*>, event: MessageCommandInteractionCreateEvent, throwable: Throwable)

Properties

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

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: MessageCommandInteractionCreateEvent

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 shard: Int
Link copied to clipboard
open override val throwable: Throwable

Exception thrown for this failure.

Functions

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

Get the associated Koin instance.