Constructor
new Client(optionsnullable)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<nullable> |
The options to pass to the client. Properties
|
Throws:
Members
(static) Client :UserManager
The user manager for this client.
Type:
(static) Client :GuildManager
The guild manager for this client.
Type:
(readonly) _cacheOptions :GluonCacheOptions
Returns the cache options for this client.
Type:
(readonly) _defaultGuildCacheOptions :GuildCacheOptions
Returns the global guild cache options for this client.
Type:
(readonly) guilds :GuildManager
The guild manager for this client.
Type:
(readonly) intents :Number
The intents that this client is using.
Type:
- Number
(readonly) shardIds :Array.<Number>
The ids of the shards that this client is managing.
Type:
- Array.<Number>
(readonly) totalShards :Number
The total number of shards that this client is managing.
Type:
- Number
(nullable) user :User
The client user.
Type:
(readonly) users :UserManager
The user manager for this client.
Type:
Methods
_emitDebug(status, message) → {void}
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | The debug status level. |
message |
String | The message to emit. |
Returns:
- Type
- void
bundleCache() → {Array.<Object>}
Returns:
- Type
- Array.<Object>
checkProcess() → {Object}
Returns:
- Type
- Object
getCacheCounts() → {Object}
Returns:
- Type
- Object
getMemberCount() → {Number}
Returns:
- Type
- Number
halt() → {void}
Returns:
- Type
- void
login(token) → {void}
Parameters:
Name | Type | Description |
---|---|---|
token |
String | The authorization token |
Throws:
Returns:
- Type
- void
(async) registerCommands(commands) → {Array.<Object>}
- Description:
Registers commands, overwriting all previous ones.
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
commands |
Array.<Command> | Array of commands to register. |
Throws:
Returns:
- Type
- Array.<Object>
setStatus(status) → {void}
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status |
Object | Status options. Properties
|
Throws:
Returns:
- Type
- void
softRestartFunction() → {void}
Returns:
- Type
- void