Skip to main content
Version: Next

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​

ParameterType

ctx

CommandContext

Returns​

| void | Promise<void>

See​