- new Bot(botOptions, clientOptionsopt) -
- - - - -storage
,
-guild specific storages
, and contains important
-fields for access within commands
-Parameters:
- - -Name | - - -Type | - - -Attributes | - - - - -Description | -
---|---|---|---|
botOptions |
-
-
-
-
-
- |
-
-
- - - - - - - | - - - - -Object containing required bot properties | -
clientOptions |
-
-
-
-
-
- |
-
-
-
-
- <optional> - - - - - - |
-
-
-
-
- Discord.js ClientOptions | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Extends
- - - - --
-
- Client -
Events
- - - - - - -- command -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
name |
-
-
-
-
-
- |
-
-
-
-
-
- Name of the called command | -
args |
-
-
-
-
-
- |
-
-
-
-
-
- Args passed to the called command | -
original |
-
-
-
-
-
- |
-
-
-
-
-
- Original content of the message that called the command | -
execTime |
-
-
-
-
-
- |
-
-
-
-
-
- Time command took to execute | -
message |
-
-
-
-
-
- |
-
-
-
-
-
- Message that triggered the command | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Properties
- - - -.commands :CommandRegistry<string, Command>
- -Collection
containing all loaded commands
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.commandsDir :string
- -Bot#passive
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.config :Object
- -Properties:
- - - -Name | - - -Type | - - - - - -Description | -
---|---|---|
token |
-
-
-
-
-
- |
-
-
-
-
-
- Discord login token for the bot | -
owner |
-
-
-
-
-
- |
-
-
-
-
-
- Array of owner id strings | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.disableBase :Array<string>
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.guildStorages :GuildStorageRegistry<string, GuildStorage>
- -Collection
containing all GuildStorage instances
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.name :string
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.noCommandErr :string
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.passive :boolean
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.readyText :string
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.selfbot :boolean
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(nullable) .statusText :string
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.storage :LocalStorage
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.version :string
- --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Methods
- - - - - - -- .defaultSettingExists(key) → {boolean} -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
key |
-
-
-
-
-
- |
-
-
-
-
-
- The key in storage to check | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .getPrefix(guild) → {string|null} -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
guild |
-
-
-
-
-
- |
-
-
-
-
-
- The guild or guild id to get the prefix of | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .loadCommand(command) -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
command |
-
-
-
-
-
- |
-
-
-
-
-
- The name of a command to reload, or 'all' to load all commands | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .removeDefaultSetting(key) → {Bot} -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
key |
-
-
-
-
-
- |
-
-
-
-
-
- The key to use in settings storage | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .setDefaultSetting(key, value) → {Bot} -
- - - - -Parameters:
- - -Name | - - -Type | - - - - - -Description | -
---|---|---|
key |
-
-
-
-
-
- |
-
-
-
-
-
- The key to use in settings storage | -
value |
-
-
-
-
-
- |
-
-
-
-
-
- The value to use in settings storage | -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .start() → {Bot} -
- - - - --
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-