mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Webpack build: b518437f52
This commit is contained in:
parent
ff5eb050b0
commit
8a73d1d483
2 changed files with 3 additions and 2 deletions
|
|
@ -21591,8 +21591,9 @@ class WebSocketManager extends EventEmitter {
|
|||
/**
|
||||
* Emitted whenever the client websocket is disconnected
|
||||
* @event Client#disconnect
|
||||
* @param {CloseEvent} event The WebSocket close event
|
||||
*/
|
||||
if (!this.reconnecting) this.client.emit(Constants.Events.DISCONNECT);
|
||||
if (!this.reconnecting) this.client.emit(Constants.Events.DISCONNECT, event);
|
||||
if (event.code === 4004) return;
|
||||
if (event.code === 4010) return;
|
||||
if (!this.reconnecting && event.code !== 1000) this.tryReconnect();
|
||||
|
|
|
|||
2
discord.indev.min.js
vendored
2
discord.indev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue