ExtensionStateEvent

data class ExtensionStateEvent(val extension: Extension, val state: ExtensionState) : KordExEvent

Event fired when an extension's state changes.

Constructors

Link copied to clipboard
constructor(extension: Extension, state: ExtensionState)

Properties

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

Extension that has a state change

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

Extension's new state

Functions

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

Get the associated Koin instance.