DefaultSlashCommandClient

Extendable coroutine based SlashCommandClient

See also

Parameters

packageName

The package name where commands are located (me.example.commands)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCommandAutoCompleteEvent(event: CommandAutoCompleteInteractionEvent)

Handled when discord send an CommandAutoCompleteInteractionEvent

Link copied to clipboard
open override fun onEvent(event: GenericEvent)
Link copied to clipboard
open override fun onModalInteractionEvent(event: ModalInteractionEvent)
Link copied to clipboard
open override fun onSlashCommandEvent(event: SlashCommandInteractionEvent)

Handled when discord send an SlashCommandInteractionEvent

Properties

Link copied to clipboard
Link copied to clipboard
open override val registry: List<BaseSlashCommand>

The command registry.