aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/channelGlobalBlacklist.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
commit80d5b5b11ae261945dc725a0a80115922003afcf (patch)
tree16c9f251b4d53456b4b5340c0203d35fd5870859 /src/inhibitors/blacklist/channelGlobalBlacklist.ts
parentcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff)
downloadtanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip
refactor: this.client -> client
Diffstat (limited to 'src/inhibitors/blacklist/channelGlobalBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/channelGlobalBlacklist.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/inhibitors/blacklist/channelGlobalBlacklist.ts b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
index 9dc5df9..0ddb2bb 100644
--- a/src/inhibitors/blacklist/channelGlobalBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
@@ -11,14 +11,10 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor {
public exec(message: BushMessage | BushSlashMessage): boolean {
if (!message.author) return false;
- if (
- this.client.isOwner(message.author) ||
- this.client.isSuperUser(message.author) ||
- this.client.user.id === message.author.id
- )
+ if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
return false;
- if (this.client.cache.global.blacklistedChannels.includes(message.channel.id)) {
- this.client.console.debug(`channelGlobalBlacklist blocked message.`);
+ if (client.cache.global.blacklistedChannels.includes(message.channel.id)) {
+ client.console.debug(`channelGlobalBlacklist blocked message.`);
return true;
}
}