new CommandManager()
Methods
-
add(command)
-
Add the command and set up aliases
Parameters:
Name Type Description commandCommand -
find(search, returnAlias) → {Command}
-
Find a command from a partial name
Parameters:
Name Type Description searchstring returnAliasboolean true to also return which alias of the command was used
Returns:
Command -
get(command) → {Command}
-
Get command by name
Parameters:
Name Type Description commandstring Returns:
Command -
remove(command)
-
Parameters:
Name Type Description commandCommand