diff options
Diffstat (limited to 'src/inhibitors/blacklist/channelGuildBlacklist.ts')
-rw-r--r-- | src/inhibitors/blacklist/channelGuildBlacklist.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inhibitors/blacklist/channelGuildBlacklist.ts b/src/inhibitors/blacklist/channelGuildBlacklist.ts index aa5b2d9..09f58d0 100644 --- a/src/inhibitors/blacklist/channelGuildBlacklist.ts +++ b/src/inhibitors/blacklist/channelGuildBlacklist.ts @@ -11,8 +11,9 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor { } public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> { - if (!message.inGuild()) return false; - if (message.author.isOwner() || client.user!.id === message.author.id) return false; + if (!message.author || !message.inGuild()) return false; + // do not change to message.author.isOwner() + if (client.isOwner(message.author) || client.user!.id === message.author.id) return false; if ( (await message.guild.getSetting('bypassChannelBlacklist'))?.includes(message.author.id) && !command.bypassChannelBlacklist |