No summary provided.
Implements
AsyncDisposableConstructs a new instance of the
WebSocketManager
className | Type | Optional | Description |
---|---|---|---|
options | CreateWebSocketManagerOptions | No | None |
Name | Type | Optional | Description |
---|---|---|---|
options | Omit<WebSocketShardDestroyOptions, 'recover'> | Yes | None |
Fetches the gateway information from Discord - or returns it from cache if available
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to ignore the cache and force a fresh fetch |
fetchStatus():Awaitable<import("@discordjs/collection").Collection<number, import("./WebSocketShard.js").WebSocketShardStatus>>
Yields the total number of shards across for your bot, accounting for Discord recommendations
Yields the ids of the shards this manager should manage
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | None |
Name | Type | Optional | Description |
---|---|---|---|
shardId | number | No | None |
payload | GatewaySendPayload | No | None |
Name | Type | Optional | Description |
---|---|---|---|
token | string | No | None |