diff options
Diffstat (limited to 'src/inhibitors/noCache.ts')
-rw-r--r-- | src/inhibitors/noCache.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inhibitors/noCache.ts b/src/inhibitors/noCache.ts index 9d6e560..9bddedd 100644 --- a/src/inhibitors/noCache.ts +++ b/src/inhibitors/noCache.ts @@ -11,8 +11,8 @@ export default class NoCacheInhibitor extends BushInhibitor { public async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { if (this.client.isOwner(message.author)) return false; - for (const property in this.client.cache) { - if (property === undefined || property === null) { + for (const property in this.client.cache.global) { + if (!this.client.cache.global[property]) { this.client.console.debug(`NoCacheInhibitor blocked message.`); return true; } |