Class

Base_Manager

Base_Manager()

Represents the base of the command manager.
Constructor

# new Base_Manager()

Properties:
Name Type Description
token String The bot's token.
options Object The options for the command manager.

View Source index.js, line 12

Extends

  • EventEmitter

Members

String

# api_url

The discord API url.
Default Value:
  • "https://discord.com/api/v9"

View Source index.js, line 29

Object

# app

The bot's application.

View Source index.js, line 37

Object

# options

The options for the command manager.

View Source index.js, line 22

String

# token

The bot's token.

View Source index.js, line 15

Object

# utils

The utils functions used by the command manager.
Properties:
Name Type Description
separateCommand function Checks the command and separate the commands and groups of commands.

View Source index.js, line 44

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.

View Source index.js, line 94

Promise.<Object>

# async start() → {Boolean}

Start the command manager.

View Source index.js, line 59

Returns true if the manager was started, otherwise returns an error.
Boolean

# stop() → {Boolean}

Stop the command manager.

View Source index.js, line 83

Returns true to indicate that the manager is stopped.
Boolean