Properties

Link copied to clipboard
abstract override var declarationSite: DeclarationSite

Purely for debugging purposes, will be shown in exceptions.

Link copied to clipboard
abstract var description: String?

Short description of the subcommand group. May be displayed on Discord.

Link copied to clipboard
abstract val name: String

The name of this command.

Link copied to clipboard

The parent of this command, null for top-level commands.

Link copied to clipboard
abstract val path: CommandPath

The complete path that leads to this command.

Functions

Link copied to clipboard
abstract fun subcommand(name: String, function: KFunction<Any>, block: SlashSubcommandBuilder.() -> Unit = {})

Adds a subcommand, must not contain any spaces and no upper cases.