Command

Command

A command that can be run

Constructor

new Command(client, info)

Source:
Parameters:
Name Type Description
client ModzClient The client the command is for
info CommandInfo The command information

Members

aliases :Array.<string>

Aliases for the command
Source:
Type:
  • Array.<string>

client

The client this command is for
Source:

description :string

Description for the command
Source:
Type:
  • string

group :string

Group this command belongs to
Source:
Type:
  • string

name :string

Name of this command
Source:
Type:
  • string

Methods

reload()

Reloads the command
Source:

(abstract) run(message, args) → {Promise.<(?Message|?Array.<Message>)>}

Runs the command
Source:
Parameters:
Name Type Description
message Message The message the command is being run for
args Array.<string> The arguments for the command
Returns:
Type:
Promise.<(?Message|?Array.<Message>)>