Optional additional configuration for the WebSocketManager
Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
The total number of shards across all WebsocketManagers you intend to instantiate. Use
null
to use Discord's recommended shard countBuilds 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 |