aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/guildBlacklist.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/guildBlacklist.ts
parentcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff)
downloadtanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip
refactor: this.client -> client
Diffstat (limited to 'src/inhibitors/blacklist/guildBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/guildBlacklist.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/inhibitors/blacklist/guildBlacklist.ts b/src/inhibitors/blacklist/guildBlacklist.ts
index 7d08157..0d99c38 100644
--- a/src/inhibitors/blacklist/guildBlacklist.ts
+++ b/src/inhibitors/blacklist/guildBlacklist.ts
@@ -13,13 +13,11 @@ export default class GuildBlacklistInhibitor extends BushInhibitor {
if (!message.guild) return false;
if (
message.author &&
- (this.client.isOwner(message.author) ||
- this.client.isSuperUser(message.author) ||
- this.client.user.id === message.author.id)
+ (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
)
return false;
- if (this.client.cache.global.blacklistedGuilds.includes(message.guild.id)) {
- this.client.console.debug(`GuildBlacklistInhibitor blocked message.`);
+ if (client.cache.global.blacklistedGuilds.includes(message.guild.id)) {
+ client.console.debug(`GuildBlacklistInhibitor blocked message.`);
return true;
}
}