mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
fix raw event (#2074)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user