Registers a new sub-command within the command group.
See [[discord.interactions.command.register]] for more information.
The configuration for this command. name
and description
must be specified.
The function to be ran when this sub-command is executed.
Registers a new nested sub-command group within the command group.
Keep in mind the max sub-command group depth is 2. This means you can create a root command group and apply command groups on it.
The config for the new command group. name
and description
must be specified.
Generated using TypeDoc
A convince function to apply subcommands to a subcommand group in an isolated closure's scope.