diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-17 12:31:09 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-17 12:31:09 -0400 |
commit | d40527d0a2d9f209905750258f71bedff1cdf089 (patch) | |
tree | e017fd844c2135bfc85228d00ef2617d24ce0a3f /src/inhibitors/noCache.ts | |
parent | d431ad00754f3f250103deedea495b9bcee73fc0 (diff) | |
download | tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.gz tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.bz2 tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.zip |
turned on ts strict option
Diffstat (limited to 'src/inhibitors/noCache.ts')
-rw-r--r-- | src/inhibitors/noCache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inhibitors/noCache.ts b/src/inhibitors/noCache.ts index 6bb2001..673f3ac 100644 --- a/src/inhibitors/noCache.ts +++ b/src/inhibitors/noCache.ts @@ -12,7 +12,7 @@ export default class NoCacheInhibitor extends BushInhibitor { public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { if (client.isOwner(message.author)) return false; for (const property in client.cache.global) { - if (!client.cache.global[property]) { + if (!client.cache.global[property as keyof typeof client.cache.global]) { client.console.debug(`NoCacheInhibitor blocked message.`); return true; } |