aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/guildBlacklist.ts
diff options
context:
space:
mode:
authorOwen Duckham <64110067+IRONM00N@users.noreply.github.com>2022-02-28 07:48:59 -0500
committerOwen Duckham <64110067+IRONM00N@users.noreply.github.com>2022-02-28 07:48:59 -0500
commit5f3a7dfbedee3dd4ec7a91bf7beb593687fdc021 (patch)
treed4cbb45347fcc5939d194e78242f0a1cf9d4a353 /src/inhibitors/blacklist/guildBlacklist.ts
parent541988dafb5bea248a706c210a05461b94a3c9a9 (diff)
downloadtanzanite-5f3a7dfbedee3dd4ec7a91bf7beb593687fdc021.tar.gz
tanzanite-5f3a7dfbedee3dd4ec7a91bf7beb593687fdc021.tar.bz2
tanzanite-5f3a7dfbedee3dd4ec7a91bf7beb593687fdc021.zip
fix: revert to client.isOwner
Diffstat (limited to 'src/inhibitors/blacklist/guildBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/guildBlacklist.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inhibitors/blacklist/guildBlacklist.ts b/src/inhibitors/blacklist/guildBlacklist.ts
index 9949c22..d540af7 100644
--- a/src/inhibitors/blacklist/guildBlacklist.ts
+++ b/src/inhibitors/blacklist/guildBlacklist.ts
@@ -11,8 +11,10 @@ export default class GuildBlacklistInhibitor extends BushInhibitor {
}
public override exec(message: BushMessage | BushSlashMessage): boolean {
- if (!message.inGuild()) return false;
- if (message.author.isOwner() || message.author.isSuperUser() || client.user!.id === message.author.id) return false;
+ if (!message.author || !message.inGuild()) return false;
+ // do not change to message.author.isOwner()
+ if (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)) {
void client.console.verbose(
'guildBlacklist',