aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/blacklist/userBlacklist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/blacklist/userBlacklist.ts')
-rw-r--r--src/inhibitors/blacklist/userBlacklist.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/inhibitors/blacklist/userBlacklist.ts b/src/inhibitors/blacklist/userBlacklist.ts
index 6772188..4349bb1 100644
--- a/src/inhibitors/blacklist/userBlacklist.ts
+++ b/src/inhibitors/blacklist/userBlacklist.ts
@@ -3,7 +3,7 @@ import { BushSlashMessage } from '../../lib/extensions/discord-akairo/BushSlashM
import { BushMessage } from '../../lib/extensions/discord.js/BushMessage';
export default class UserBlacklistInhibitor extends BushInhibitor {
- constructor() {
+ public constructor() {
super('userBlacklist', {
reason: 'userBlacklist',
category: 'blacklist',
@@ -14,6 +14,9 @@ export default class UserBlacklistInhibitor extends BushInhibitor {
public exec(message: BushMessage | BushSlashMessage): boolean {
if (!message.author) return false;
if (this.client.isOwner(message.author) || this.client.isSuperUser(message.author)) return false;
- return this.client.cache.global.blacklistedUsers.includes(message.author.id);
+ if (this.client.cache.global.blacklistedUsers.includes(message.author.id)) {
+ this.client.console.debug(`UserBlacklistInhibitor blocked message.`);
+ return true;
+ }
}
}