action

open fun action(action: suspend ChatCommandContext<out T>.() -> Unit)

Define what will happen when your command is invoked.

Parameters

action

The body of your command, which will be executed when your command is invoked.