Skip to content

Class: CommandManager

Constructors

constructor

new CommandManager(client, commands)

Creates a new command manager

Parameters

Name Type Description
client Client<boolean> The client that this manager belongs to
commands Command[] The commands this manager should manage

Properties

client

client: Client<boolean>

The client that this manager belongs to


cache

cache: Collection<string, Command>

The commands this manager is currently managing

Methods

resolve

resolve(command): Command

Resolves a command or the name of a command to a command

Parameters

Name Type Description
command string | Command A command or its name

Returns

Command

The command matching the name

Back to top