No summary provided.
The transport compression method to use - mutually exclusive with 
useIdentifyCompressionDefault value
null (no transport compression)The encoding to use
Default value
'json'How long to wait for a shard to connect before giving up
How long to wait for a shard's HELLO packet before giving up
Properties to send to the gateway when identifying
Initial presence data to send to the gateway when identifying
The intents to request
Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
How long to wait for a shard's READY packet before giving up
Providing a REST instance is deprecated. Provide the 
fetchGatewayInformation function instead.Deprecated
The REST instance to use for fetching gateway information
The total number of shards across all WebsocketManagers you intend to instantiate. Use 
null to use Discord's recommended shard countThe ids of the shards this WebSocketManager should manage. Use 
null to simply spawn 0 through shardCount - 1Example
Example
The token to use for identifying with the gateway
If not provided, the token must be set using setToken
Whether to use the 
compress option when identifyingDefault value
falseThe gateway version to use
Default value
'10'Builds an identify throttler to use for this manager's shards
| Name | Type | Optional | Description | 
|---|---|---|---|
| manager | WebSocketManager | No | None | 
Builds the strategy to use for sharding
Example
| Name | Type | Optional | Description | 
|---|---|---|---|
| manager | WebSocketManager | No | None | 
Fetches the initial gateway URL used to connect to Discord. When missing, this will default to the gateway URL that Discord returns from the 
/gateway/bot route.Example
Function used to retrieve session information (and attempt to resume) for a given shard
Example
| Name | Type | Optional | Description | 
|---|---|---|---|
| shardId | number | No | None | 
Function used to store session information for a given shard
| Name | Type | Optional | Description | 
|---|---|---|---|
| shardId | number | No | None | 
| sessionInfo | SessionInfo | null | No | None |