mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Reorganise disabledEvents stuff
This commit is contained in:
@@ -84,9 +84,7 @@ class WebSocketPacketManager {
|
||||
|
||||
this.setSequence(packet.s);
|
||||
|
||||
if (this.ws.client.options.disabledEvents[packet.t] !== undefined) {
|
||||
return false;
|
||||
}
|
||||
if (this.ws.disabledEvents[packet.t] !== undefined) return false;
|
||||
|
||||
if (this.ws.status !== Constants.Status.READY) {
|
||||
if (BeforeReadyWhitelist.indexOf(packet.t) === -1) {
|
||||
|
||||
Reference in New Issue
Block a user