CommandHandler class

The CommandHandler class extends the NodeJS built-in EventEmitter class.

const commandHandler = new CommandHandler(data: object);

constructor

The CommandHandler class requires one argument, which is the json object of an instance of the Zyno Bot Addons CommandBuilder class.

Properties

name

The name of the command.

description

The description given to the command.

id

A unique randomly created id by the Zyno Bot Addons module to identify the command.

Events

EventDescriptionArguments

execute

Gets emitted when the command is being used by a member in a Discord server.

Command

Last updated