class WebSocketManager
extends
AsyncEventEmitter<ManagerShardEventsMap>declare class WebSocketManager extends AsyncEventEmitter<ManagerShardEventsMap>
readonlyWebSocketManagerOptions options :
The options being used by this manager
connectPromise<void> () :
destroyoptions?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Awaitable<void> (
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
fetchGatewayInformationforce?: boolean) : Promise<APIGatewayBotInfo> (
force?: boolean
Fetches the gateway information from Discord - or returns it from cache if available
getShardCountPromise<number> () :
Yields the total number of shards across for your bot, accounting for Discord recommendations
Yields the ids of the shards this manager should manage
sendshardId: numberpayload: GatewaySendPayload) : Awaitable<void> (
shardId: number
payload: GatewaySendPayload
setStrategystrategy: IShardingStrategy) : this (
strategy: IShardingStrategy
updateShardCountshardCount: number | null) : Promise<this> (
shardCount: number | null
Updates your total shard count on-the-fly, spawning shards as needed