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.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inhibitors/blacklist/channelGuildBlacklist.ts b/src/inhibitors/blacklist/channelGuildBlacklist.ts
index e881ebb..aa5b2d9 100644
--- a/src/inhibitors/blacklist/channelGuildBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGuildBlacklist.ts
@@ -11,9 +11,8 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor {
}
public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
- if (!message.author || !message.guild) return false;
- if (client.isOwner(message.author) || /* client.isSuperUser(message.author) || */ client.user!.id === message.author.id)
- return false;
+ if (!message.inGuild()) return false;
+ if (message.author.isOwner() || client.user!.id === message.author.id) return false;
if (
(await message.guild.getSetting('bypassChannelBlacklist'))?.includes(message.author.id) &&
!command.bypassChannelBlacklist