You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

WebSocketShard

export declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap>
export declare class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap>

No summary provided.

Extends

AsyncEventEmitter<WebSocketShardEventsMap>
constructor(strategy, id)
Constructs a new instance of the WebSocketShard class
NameTypeOptionalDescription
strategyIContextFetchingStrategyNoNone
idnumberNoNone
Readonly
id:number
Readonly
connect():Promise<void>
destroy(options?):Promise<void>
NameTypeOptionalDescription
optionsWebSocketShardDestroyOptionsYesNone
send(payload):Promise<void>
NameTypeOptionalDescription
payloadGatewaySendPayloadNoNone