Skip to content

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 ParameterDefault type
S extends MessageSourceMessageSource

Parameters ​

ParameterType
contextCommandContext<S>

Returns ​

void | Promise<void>

Released under the MIT License.