From f630d118fb2f862a2572e0a0aa33b1422d0cc750 Mon Sep 17 00:00:00 2001 From: JustEvil <71156616+EvilG-MC@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:58:45 -0600 Subject: [PATCH] fix: cache truco (#246) --- src/cache/index.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/cache/index.ts b/src/cache/index.ts index 4a0f24e..e4752e9 100644 --- a/src/cache/index.ts +++ b/src/cache/index.ts @@ -128,54 +128,54 @@ export class Cache { client?: UsingClient, ) { // non-guild based - if (this.disabledCache.users) { + if (!this.disabledCache.users) { this.users = new Users(this, client); } - if (this.disabledCache.guilds) { + if (!this.disabledCache.guilds) { this.guilds = new Guilds(this, client); } // guild related - if (this.disabledCache.members) { + if (!this.disabledCache.members) { this.members = new Members(this, client); } - if (this.disabledCache.voiceStates) { + if (!this.disabledCache.voiceStates) { this.voiceStates = new VoiceStates(this, client); } // guild based - if (this.disabledCache.roles) { + if (!this.disabledCache.roles) { this.roles = new Roles(this, client); } - if (this.disabledCache.overwrites) { + if (!this.disabledCache.overwrites) { this.overwrites = new Overwrites(this, client); } - if (this.disabledCache.channels) { + if (!this.disabledCache.channels) { this.channels = new Channels(this, client); } - if (this.disabledCache.emojis) { + if (!this.disabledCache.emojis) { this.emojis = new Emojis(this, client); } - if (this.disabledCache.stickers) { + if (!this.disabledCache.stickers) { this.stickers = new Stickers(this, client); } - if (this.disabledCache.presences) { + if (!this.disabledCache.presences) { this.presences = new Presences(this, client); } - if (this.disabledCache.threads) { + if (!this.disabledCache.threads) { this.threads = new Threads(this, client); } - if (this.disabledCache.stageInstances) { + if (!this.disabledCache.stageInstances) { this.stageInstances = new StageInstances(this, client); } - if (this.disabledCache.messages) { + if (!this.disabledCache.messages) { this.messages = new Messages(this, client); } - if (this.disabledCache.bans) { + if (!this.disabledCache.bans) { this.bans = new Bans(this, client); } - if (this.disabledCache.onPacket) delete this.onPacket; + if (!this.disabledCache.onPacket) delete this.onPacket; } /** @internal */