diff options
Diffstat (limited to 'src/inhibitors/blacklist/userGlobalBlacklist.ts')
-rw-r--r-- | src/inhibitors/blacklist/userGlobalBlacklist.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inhibitors/blacklist/userGlobalBlacklist.ts b/src/inhibitors/blacklist/userGlobalBlacklist.ts index 1173d87..967943d 100644 --- a/src/inhibitors/blacklist/userGlobalBlacklist.ts +++ b/src/inhibitors/blacklist/userGlobalBlacklist.ts @@ -11,11 +11,12 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor { public override exec(message: BushMessage | BushSlashMessage): boolean { if (!message.author) return false; - if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id) + if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user!.id === message.author.id) return false; if (client.cache.global.blacklistedUsers.includes(message.author.id)) { // client.console.debug(`userGlobalBlacklist blocked message.`); return true; } + return false; } } |