From 37a121011bf147ea1e56b299b7e2b5dfe3574532 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 26 Jul 2021 15:33:09 -0400 Subject: fix: refactored eval, sanitize decode, refactor price and fix trying to use an emoji as a color --- src/inhibitors/noCache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inhibitors') 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 { 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; } -- cgit