diff options
Diffstat (limited to 'src/inhibitors/blacklist/userGlobalBlacklist.ts')
-rw-r--r-- | src/inhibitors/blacklist/userGlobalBlacklist.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inhibitors/blacklist/userGlobalBlacklist.ts b/src/inhibitors/blacklist/userGlobalBlacklist.ts index bf0d4bd..e8a1306 100644 --- a/src/inhibitors/blacklist/userGlobalBlacklist.ts +++ b/src/inhibitors/blacklist/userGlobalBlacklist.ts @@ -13,9 +13,9 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor { public exec(message: CommandMessage | SlashMessage): boolean { if (!message.author) return false; // do not change to message.author.isOwner() - if (client.isOwner(message.author) || client.user!.id === message.author.id) return false; - if (client.cache.global.blacklistedUsers.includes(message.author.id)) { - void client.console.verbose( + if (this.client.isOwner(message.author) || this.client.user!.id === message.author.id) return false; + if (this.client.cache.global.blacklistedUsers.includes(message.author.id)) { + void this.client.console.verbose( 'userGlobalBlacklist', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${ message.inGuild() ? message.guild?.name : message.author.tag |