mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +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) {
|
onMessage(event) {
|
||||||
try {
|
try {
|
||||||
this.onPacket(this.unpack(event.data));
|
event.data = this.unpack(event.data);
|
||||||
return true;
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.debug(err);
|
this.emit('debug', err);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return this.onPacket(event.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -25190,11 +25189,7 @@ class WebSocketPacketManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!queue && this.queue.length > 0) this.handleQueue();
|
if (!queue && this.queue.length > 0) this.handleQueue();
|
||||||
try {
|
if (this.handlers[packet.t]) return this.handlers[packet.t].handle(packet);
|
||||||
if (this.handlers[packet.t]) return this.handlers[packet.t].handle(packet);
|
|
||||||
} catch (error) {
|
|
||||||
this.client.emit(Constants.Events.ERROR, error);
|
|
||||||
}
|
|
||||||
return false;
|
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