mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
src: fix up WebSocketShard errors (#3722)
* src: Fix up WebSocketShard errors * typings: Forgot to update * src: Forgot debug variable * src: Fix issue Bella found If the WS was not connected when the HELLO timeout passes (CONNECTING, etc), the shard would get stuck due to never rejecting the WebSocketShard#connect Promise with the DESTROYED event
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -1727,8 +1727,9 @@ declare module 'discord.js' {
|
||||
private identifyResume(): void;
|
||||
private _send(data: object): void;
|
||||
private processQueue(): void;
|
||||
private destroy(closeCode: number): void;
|
||||
private destroy(destroyOptions?: { closeCode?: number; reset?: boolean; emit?: boolean; log?: boolean }): void;
|
||||
private _cleanupConnection(): void;
|
||||
private _emitDestroyed(): void;
|
||||
|
||||
public send(data: object): void;
|
||||
public on(event: 'ready', listener: () => void): this;
|
||||
|
||||
Reference in New Issue
Block a user