subcommand

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

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

This can be localized, see LocalizationFunction on how commands are mapped.

See also