Package-level declarations

Types

Link copied to clipboard
open class EventContext<T : Event>(val eventHandler: EventHandler<T>, val event: T, val cache: MutableStringKeyedMap<Any>) : KordExKoinComponent, TranslatableContext

Light wrapper representing the context for an event handler's action.

Link copied to clipboard
open class EventHandler<T : Event>(val extension: Extension) : KordExKoinComponent

Class representing an event handler. Event handlers react to a given Kord event.

Link copied to clipboard
data class ExtensionStateEvent(val extension: Extension, val state: ExtensionState) : KordExEvent

Event fired when an extension's state changes.

Link copied to clipboard
interface KordExEvent : Event, KordExKoinComponent

Base interface for events fired by Kord Extensions.

Link copied to clipboard
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.