mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Update to master
This commit is contained in:
@@ -22,6 +22,7 @@ class ClientManager {
|
||||
|
||||
/**
|
||||
* The status of the client
|
||||
* @readonly
|
||||
* @type {number}
|
||||
*/
|
||||
get status() {
|
||||
|
||||
@@ -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