chatGroupCommand
open suspend fun <R : Arguments> chatGroupCommand(arguments: () -> R?, body: suspend ChatGroupCommand<R>.() -> Unit): ChatGroupCommand<R>
DSL function for easily registering a grouped command.
Use this in your setup function to register a group of commands.
The body of the grouped command will be executed if there is no matching subcommand.
Parameters
body
Builder lambda used for setting up the command object.
open suspend fun chatGroupCommand(body: suspend ChatGroupCommand<Arguments>.() -> Unit): ChatGroupCommand<Arguments>
DSL function for easily registering a grouped command, without its own arguments.
Use this in your setup function to register a group of commands.
The body of the grouped command will be executed if there is no matching subcommand.
Parameters
body
Builder lambda used for setting up the command object.