Skip to main content
Version: Next

CommandCallback

type CommandCallback = (ctx) => Promise<void>;

Command callback function, this is the backend logic that implements a user ex command.

It accepts a ctx parameter that indicates runtime information when the command is executed.

Parameters

ParameterType

ctx

CommandContext

Returns

Promise<void>

See