ModalInteractionCompleteEvent

class ModalInteractionCompleteEvent(val id: String, val interaction: ModalSubmitInteraction) : KordExEvent

Event fired when a modal interaction has completed. Used by commands to figure out when to run their actions.

Parameters

id

Unique ID for the modal form.

interaction

Interaction object provided by the corresponding event.

Constructors

Link copied to clipboard
constructor(id: String, interaction: ModalSubmitInteraction)

Properties

Link copied to clipboard
@KordPreview
open override val customContext: MutableStringKeyedMap<Any>
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
val id: String
Link copied to clipboard
val interaction: ModalSubmitInteraction
Link copied to clipboard
open override val kord: Kord
Link copied to clipboard
open override val shard: Int

Functions

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

Get the associated Koin instance.