chatCommand
suspend fun <T : Arguments> Extension.chatCommand(arguments: () -> T, body: suspend ChatCommand<T>.() -> Unit): ChatCommand<T>
DSL function for easily registering a command.
Use this in your setup function to register a command that may be executed on Discord.
Parameters
body
Builder lambda used for setting up the command object.
suspend fun Extension.chatCommand(body: suspend ChatCommand<Arguments>.() -> Unit): ChatCommand<Arguments>
DSL function for easily registering a command, without arguments.
Use this in your setup function to register a command that may be executed on Discord.
Parameters
body
Builder lambda used for setting up the command object.
Function for registering a custom command object.
You can use this if you have a custom command subclass you need to register.
Parameters
commandObj
ChatCommand object to register.