aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/channelGlobalBlacklist.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-07 09:25:13 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-07 09:25:13 -0500
commita39aa8c11a3fd5dd5f007865960ef5429744f057 (patch)
treeee5b25025f07cd5ae2718ab251f1471847eb5cb8 /src/inhibitors/blacklist/channelGlobalBlacklist.ts
parentc501d4c45e19b47f6fb358253c7ff3a1413da222 (diff)
downloadtanzanite-a39aa8c11a3fd5dd5f007865960ef5429744f057.tar.gz
tanzanite-a39aa8c11a3fd5dd5f007865960ef5429744f057.tar.bz2
tanzanite-a39aa8c11a3fd5dd5f007865960ef5429744f057.zip
made some constants enums and fixed perm check overriding inhibitors
Diffstat (limited to 'src/inhibitors/blacklist/channelGlobalBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/channelGlobalBlacklist.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inhibitors/blacklist/channelGlobalBlacklist.ts b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
index 019b778..5a0f0f1 100644
--- a/src/inhibitors/blacklist/channelGlobalBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
@@ -15,6 +15,7 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor {
if (client.isOwner(message.author) || /* client.isSuperUser(message.author) ||*/ client.user!.id === message.author.id)
return false;
if (client.cache.global.blacklistedChannels.includes(message.channel!.id) && !command.bypassChannelBlacklist) {
+ void client.console.verbose('channelGlobalBlacklist', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild.name}>>.`)
return true;
}
return false;