No summary provided.
Extends
AsyncEventEmitter<ManagerShardEventsMap>Constructs a new instance of the
WebSocketManager
className | Type | Optional | Description |
---|---|---|---|
options | Partial<OptionalWebSocketManagerOptions> & RequiredWebSocketManagerOptions | 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 |
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 |
Updates your total shard count on-the-fly, spawning shards as needed
Name | Type | Optional | Description |
---|---|---|---|
shardCount | number | null | No | The new shard count to use |