Documentation / @imvu/bot / CommandHandler
Type Alias: CommandHandler<S>
ts
type CommandHandler<S> = (context) => void | Promise<void>;Defined in: packages/bot/src/Bot.ts:97
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends MessageSource | MessageSource |
Parameters
| Parameter | Type |
|---|---|
context | CommandContext<S> |
Returns
void | Promise<void>