From 00ad00734ddb2c2fce8de8efcc010181c9ce1821 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 26 Feb 2022 16:12:06 +0000 Subject: feat: use Time enum --- src/inhibitors/blacklist/userGuildBlacklist.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/inhibitors/blacklist/userGuildBlacklist.ts') diff --git a/src/inhibitors/blacklist/userGuildBlacklist.ts b/src/inhibitors/blacklist/userGuildBlacklist.ts index a87e47c..61f670e 100644 --- a/src/inhibitors/blacklist/userGuildBlacklist.ts +++ b/src/inhibitors/blacklist/userGuildBlacklist.ts @@ -11,9 +11,8 @@ export default class UserGuildBlacklistInhibitor extends BushInhibitor { } public override async exec(message: BushMessage | BushSlashMessage): Promise { - if (!message.author || !message.guild) return false; - if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user!.id === message.author.id) - return false; + if (!message.inGuild()) return false; + if (message.author.isOwner() || message.author.isSuperUser() || client.user!.id === message.author.id) return false; if ((await message.guild.getSetting('blacklistedUsers'))?.includes(message.author.id)) { void client.console.verbose( 'userGuildBlacklist', -- cgit