mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +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 {
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue