No summary provided.
The compression method to use
Inherited from OptionalWebSocketManagerOptionsDefault value
null
(no compression)The encoding to use
Inherited from OptionalWebSocketManagerOptionsDefault value
'json'
How long to wait for a shard to connect before giving up
Inherited from OptionalWebSocketManagerOptionsHow long to wait for a shard's HELLO packet before giving up
Inherited from OptionalWebSocketManagerOptionsProperties to send to the gateway when identifying
Inherited from OptionalWebSocketManagerOptionsInitial presence data to send to the gateway when identifying
Inherited from OptionalWebSocketManagerOptionsThe intents to request
Inherited from RequiredWebSocketManagerOptionsValue between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
Inherited from OptionalWebSocketManagerOptionsHow long to wait for a shard's READY packet before giving up
Inherited from OptionalWebSocketManagerOptionsThe REST instance to use for fetching gateway information
Inherited from RequiredWebSocketManagerOptionsThe total number of shards across all WebsocketManagers you intend to instantiate. Use
Inherited from OptionalWebSocketManagerOptionsnull
to use Discord's recommended shard countThe ids of the shards this WebSocketManager should manage. Use
Inherited from OptionalWebSocketManagerOptionsnull
to simply spawn 0 through shardCount - 1
Example
Example
The token to use for identifying with the gateway
Inherited from RequiredWebSocketManagerOptionsThe gateway version to use
Inherited from OptionalWebSocketManagerOptionsDefault 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 |
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 |