CommandCallback
type CommandCallback = (ctx) =>
| void
| Promise<void>;
Command callback function, the backend logic that implements a user ex command.
Note: The callback function can be either sync or async.
It accepts a ctx parameter that indicates runtime information when the command is executed.
Parameters
| Parameter | Type |
|---|---|
|
Returns
| void
| Promise<void>