export declare class WebSocketManager extends AsyncEventEmitter<ManagerShardEventsMap> implements AsyncDisposableConstructors
constructor(options: CreateWebSocketManagerOptions)
options: CreateWebSocketManagerOptions
Constructs a new instance of the WebSocketManager class
readonlyoptions : WebSocketManagerOptions
The options being used by this manager
destroy(options?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Awaitable<void>
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
fetchGatewayInformation(force?: boolean) : Promise<APIGatewayBotInfo>
force?: boolean
Fetches the gateway information from Discord - or returns it from cache if available
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
send(shardId: numberpayload: GatewaySendPayload) : Awaitable<void>
shardId: number
payload: GatewaySendPayload