Global Application Command Manager
Functions
Link copied to clipboard
fun messageCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>, builder: MessageCommandBuilder.() -> Unit)
Declares the supplied function as a message context command.
Link copied to clipboard
fun slashCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>?, builder: TopLevelSlashCommandBuilder.() -> Unit)
Declares the supplied function as a slash command.
Link copied to clipboard
fun userCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>, builder: UserCommandBuilder.() -> Unit)
Declares the supplied function as a user context command.