aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 15:33:09 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 15:33:09 -0400
commit37a121011bf147ea1e56b299b7e2b5dfe3574532 (patch)
tree40051dedaaae4ba6ab8647cefd3a7cda75e47843 /src/inhibitors
parent88e68875030086f5acf2c4295280e1b370242ec7 (diff)
downloadtanzanite-37a121011bf147ea1e56b299b7e2b5dfe3574532.tar.gz
tanzanite-37a121011bf147ea1e56b299b7e2b5dfe3574532.tar.bz2
tanzanite-37a121011bf147ea1e56b299b7e2b5dfe3574532.zip
fix: refactored eval, sanitize decode, refactor price and fix trying to use an emoji as a color
Diffstat (limited to 'src/inhibitors')
-rw-r--r--src/inhibitors/noCache.ts4
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;
}