diff options
Diffstat (limited to 'src/inhibitors/blacklist/channelGuildBlacklist.ts')
-rw-r--r-- | src/inhibitors/blacklist/channelGuildBlacklist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inhibitors/blacklist/channelGuildBlacklist.ts b/src/inhibitors/blacklist/channelGuildBlacklist.ts index 8cf35ec..ae087bd 100644 --- a/src/inhibitors/blacklist/channelGuildBlacklist.ts +++ b/src/inhibitors/blacklist/channelGuildBlacklist.ts @@ -13,7 +13,7 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor { public async exec(message: CommandMessage | SlashMessage, command: BushCommand): Promise<boolean> { 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 (this.client.isOwner(message.author) || this.client.user!.id === message.author.id) return false; if ( (await message.guild.getSetting('bypassChannelBlacklist'))?.includes(message.author.id) && !command.bypassChannelBlacklist @@ -24,7 +24,7 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor { (await message.guild.getSetting('blacklistedChannels'))?.includes(message.channel!.id) && !command.bypassChannelBlacklist ) { - void client.console.verbose( + void this.client.console.verbose( 'channelGuildBlacklist', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild.name}>>.` ); |