chatCommand
open suspend fun <R : Arguments> chatCommand(arguments: () -> R?, body: suspend ChatCommand<R>.() -> Unit): ChatCommand<R>
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.
open suspend fun 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
MessageCommand object to register.