CommandMessage(msg, cmd, prefix, prefixLength)

new CommandMessage(msg, cmd, prefix, prefixLength)

Parameters:
Name Type Description
msg external:Message The message this command message is for
cmd Command The command being run
prefix string The prefix the user used to run the command
prefixLength number The length of the prefix the user used to run the command

Members

args :Array.<string>

The string arguments derived from the usageDelim of the command

readonly client :KomadaClient

The client this CommandMessage was created with.

cmd :Command

The command being run

msg :external:Message

The message this command message is for

params :Array.<any>

The parameters resolved by this class

prefix :string

The prefix used

prefixLength :number

The length of the prefix used

reprompted :boolean

If the command reprompted for missing args