mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix raw event (#2074)
This commit is contained in:
@@ -272,7 +272,7 @@ class WebSocketConnection extends EventEmitter {
|
||||
try {
|
||||
const packet = WebSocket.unpack(this.inflate.result);
|
||||
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) {
|
||||
this.client.emit('debug', err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user