CommandManager

Constructor

new CommandManager()

The CommandManager class; it allows you to store several Commands in one place

Creates a new CommandManager instance

Methods

  • clearCommands()

    Gets rid of all the registered Commands

  • getCommand(name)nullable {Command}

    Matches and returns a Command from CommandManager's Commands if found

    name

    The name or alias of the command to find

    {String}
    arrow_forward
    nullable

    The asked command, if found

  • getCommands() → {Array.<Command>}

    Returns all of the CommandManager's registered Commands

    No arguments
    arrow_forward

    All of them!

    {Array.<Command>}
  • hasCommand(command) → {boolean}

    Returns whether a Command exists within CommandManager's Commands

    command

    Command or name/alias to look for

    {String}
    arrow_forward

    Whether or not the asked command was found

    {boolean}
  • register(command)

    Adds a Command to CommandManager's Commands

    command

    The command to be added

    arrow_forward
    No value returned
` : '' ?>