mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch master: 166161d6d3
This commit is contained in:
parent
e4197419b9
commit
9c7f45cce5
2 changed files with 6 additions and 11 deletions
|
|
@ -17308,12 +17308,11 @@ class WebSocketConnection extends EventEmitter {
|
|||
*/
|
||||
onMessage(event) {
|
||||
try {
|
||||
this.onPacket(this.unpack(event.data));
|
||||
return true;
|
||||
event.data = this.unpack(event.data);
|
||||
} catch (err) {
|
||||
this.debug(err);
|
||||
return false;
|
||||
this.emit('debug', err);
|
||||
}
|
||||
return this.onPacket(event.data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -25190,11 +25189,7 @@ class WebSocketPacketManager {
|
|||
}
|
||||
|
||||
if (!queue && this.queue.length > 0) this.handleQueue();
|
||||
try {
|
||||
if (this.handlers[packet.t]) return this.handlers[packet.t].handle(packet);
|
||||
} catch (error) {
|
||||
this.client.emit(Constants.Events.ERROR, error);
|
||||
}
|
||||
if (this.handlers[packet.t]) return this.handlers[packet.t].handle(packet);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue