aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/channelGuildBlacklist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/blacklist/channelGuildBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/channelGuildBlacklist.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/inhibitors/blacklist/channelGuildBlacklist.ts b/src/inhibitors/blacklist/channelGuildBlacklist.ts
index cc72182..13f3644 100644
--- a/src/inhibitors/blacklist/channelGuildBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGuildBlacklist.ts
@@ -11,14 +11,10 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor {
public async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
if (!message.author || !message.guild) 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 ((await message.guild.getSetting('blacklistedChannels'))?.includes(message.channel.id)) {
- this.client.console.debug(`channelGuildBlacklist blocked message.`);
+ client.console.debug(`channelGuildBlacklist blocked message.`);
return true;
}
}