export interface OptionalWebSocketManagerOptions
Optional additional configuration for the WebSocketManager
CompressionMethod | null = null (no compression) compression :
The compression method to use
Encoding = 'json' encoding :
The encoding to use
GatewayIdentifyProperties identifyProperties :
Properties to send to the gateway when identifying
GatewayPresenceUpdateData | null initialPresence :
Initial presence data to send to the gateway when identifying
Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
(shardId: number) => Awaitable<SessionInfo | null> retrieveSessionInfo :
Function used to retrieve session information (and attempt to resume) for a given shard
The total number of shards across all WebsocketManagers you intend to instantiate. Use null
to use Discord's recommended shard count
number[] | ShardRange | null shardIds :
The ids of the shards this WebSocketManager should manage. Use null
to simply spawn 0 through shardCount - 1
(shardId: number, sessionInfo: SessionInfo | null) => Awaitable<void> updateSessionInfo :
Function used to store session information for a given shard
string = '10' version :
The gateway version to use