Class: Command

Command(msg, bot)

Class representing a bot command.

Constructor

new Command(msg, bot)

Create a command message.
Parameters:
Name Type Description
msg Message The message that you wish to turn into a command.
bot EzcordClient The client that instansiated this.
Source:

Members

(static) this.args

The args provided.
Source:

(static) this.cmd

The command provided.
Source:

(static) this.msg

The whole message as a Message object.
Source:

(static) this.sender

The author of the message.
Source:

Methods

respond(content, embedopt)

Responds to a command.
Parameters:
Name Type Attributes Description
content String The message (use '' if you are sending an embed)
embed Embed <optional>
The message embed to send
Source: