Plugin

Plugin

The starting point for making a plugin

Constructor

new Plugin(details)

Parameters:
Name Type Description
details PluginDetails

An Object containing required Plugin information

Source:

Extends

  • EventEmitter

Methods

registerCommand(command)

Registers a command to the plugin

Parameters:
Name Type Description
command Command

The command to register

Source:

removeCommand(command)

Removes a command from the guild

Parameters:
Name Type Description
command Command

The command to remove

Source:

Events

load

Emmited when a plugin has been loaded

Parameters:
Name Type Description
Client Client

The client that registered the plugin

Source: