Skip to content

CommandHandler

The command handler.

Constructors

new CommandHandler()

1
new CommandHandler(dir: string): CommandHandler

Creates a new instance of the command handler.

Parameters

ParameterTypeDescription
dirstringThe directory of the commands.

Returns

CommandHandler

Source

twitchfy/packages/chatbot/src/structures/CommandHandler.ts:18

Properties

PropertyModifierTypeDescription
dirreadonlystringThe directory of the commands.

Methods

load()

1
load(): Promise<typeof ChatCommand[]>

Load the commands.

Returns

Promise<typeof ChatCommand[]>

The loaded commands.

Source

twitchfy/packages/chatbot/src/structures/CommandHandler.ts:26