CommandObject

A CommandObject represents the configuration/state for a single command.

Constructors

this
this(Command cmd, CommandHandler func)
Undocumented in source.

Members

Functions

match
Captures!string match(string msg)

Returns a Regex capture group matched against the commands regex.

rebuild
void rebuild()

Rebuilds the locally cached regex.

setGroup
void setGroup(string group)

Sets this commands group.

setRegex
void setRegex(bool rgx)

Sets whether this command uses regex matching.

Variables

description
string description;

The description / help text for the command

enabled
bool enabled;

Whether this command is enabled

func
CommandHandler func;

The function handler for this command

level
uint level;

The permissions level required for the command

trigger
string trigger;

The command "trigger" or name

Meta