group

suspend fun SlashCommand<*, *, *>.group(name: Key, body: suspend SlashGroup.() -> Unit): SlashGroup

Create a command group, using the given name.

Note that only root/top-level commands can contain command groups. An error will be thrown if you try to use this with a subcommand.

Parameters

name

Name of the command group on Discord.

body

Lambda used to build the SlashGroup object.