aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/guildBlacklist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/blacklist/guildBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/guildBlacklist.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inhibitors/blacklist/guildBlacklist.ts b/src/inhibitors/blacklist/guildBlacklist.ts
index afaae9d..de15d76 100644
--- a/src/inhibitors/blacklist/guildBlacklist.ts
+++ b/src/inhibitors/blacklist/guildBlacklist.ts
@@ -13,12 +13,13 @@ export default class GuildBlacklistInhibitor extends BushInhibitor {
if (!message.guild) return false;
if (
message.author &&
- (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
+ (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user!.id === message.author.id)
)
return false;
if (client.cache.global.blacklistedGuilds.includes(message.guild.id)) {
// client.console.debug(`GuildBlacklistInhibitor blocked message.`);
return true;
}
+ return false;
}
}