mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +00:00
fix raw event (#2074)
This commit is contained in:
parent
b255af0825
commit
c495ea025a
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ class WebSocketConnection extends EventEmitter {
|
||||||
try {
|
try {
|
||||||
const packet = WebSocket.unpack(this.inflate.result);
|
const packet = WebSocket.unpack(this.inflate.result);
|
||||||
this.onPacket(packet);
|
this.onPacket(packet);
|
||||||
if (this.client.listenerCount('raw')) this.client.emit('raw', data);
|
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.client.emit('debug', err);
|
this.client.emit('debug', err);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue