diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:47:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:47:13 -0400 |
commit | 80d5b5b11ae261945dc725a0a80115922003afcf (patch) | |
tree | 16c9f251b4d53456b4b5340c0203d35fd5870859 /src/inhibitors/noCache.ts | |
parent | cca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff) | |
download | tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2 tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip |
refactor: this.client -> client
Diffstat (limited to 'src/inhibitors/noCache.ts')
-rw-r--r-- | src/inhibitors/noCache.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inhibitors/noCache.ts b/src/inhibitors/noCache.ts index 9bddedd..d461076 100644 --- a/src/inhibitors/noCache.ts +++ b/src/inhibitors/noCache.ts @@ -10,10 +10,10 @@ 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.global) { - if (!this.client.cache.global[property]) { - this.client.console.debug(`NoCacheInhibitor blocked message.`); + if (client.isOwner(message.author)) return false; + for (const property in client.cache.global) { + if (!client.cache.global[property]) { + client.console.debug(`NoCacheInhibitor blocked message.`); return true; } } |