Constructor
# new Base_Manager()
Properties:
Name | Type | Description |
---|---|---|
token |
String | The bot's token. |
options |
Object | The options for the command manager. |
Extends
- EventEmitter
Members
Methods
# async getCommands(guildopt) → {Promise.<Object>}
Get application commands.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
guild |
String |
<optional> |
Guild id to get commands, if is undefined will get global commands. |
Promise.<Object>
# async start() → {Boolean}
Start the command manager.
Returns true if the manager was started, otherwise returns an error.
Boolean
# stop() → {Boolean}
Stop the command manager.
Returns true to indicate that the manager is stopped.
Boolean