SlashCommandClient

interface SlashCommandClient : EventListener

Types

Companion
Link copied to clipboard
object Companion

Functions

getCommand
Link copied to clipboard
open fun getCommand(name: String): BaseSlashCommand?
onCommandAutoCompleteEvent
Link copied to clipboard
abstract fun onCommandAutoCompleteEvent(event: CommandAutoCompleteInteractionEvent)

Handled when discord send an CommandAutoCompleteInteractionEvent

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

Handled when discord send an SlashCommandInteractionEvent

Properties

exceptionHandler
Link copied to clipboard
abstract val exceptionHandler: ExceptionHandler
registry
Link copied to clipboard
abstract val registry: List<BaseSlashCommand>

The command registry.

Inheritors

DefaultSlashCommandClient
Link copied to clipboard