From 5d33e1aa43444850084b4794b7d870e67dbb474e Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 23 Aug 2021 20:17:13 -0400 Subject: bunch of shit --- src/inhibitors/commands/guildDisabledCommand.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/inhibitors/commands/guildDisabledCommand.ts (limited to 'src/inhibitors/commands/guildDisabledCommand.ts') diff --git a/src/inhibitors/commands/guildDisabledCommand.ts b/src/inhibitors/commands/guildDisabledCommand.ts deleted file mode 100644 index ee798e5..0000000 --- a/src/inhibitors/commands/guildDisabledCommand.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { BushCommand, BushInhibitor, BushMessage, BushSlashMessage } from '@lib'; - -export default class DisabledGuildCommandInhibitor extends BushInhibitor { - public constructor() { - super('disabledGuildCommand', { - reason: 'disabledGuild', - type: 'pre', - priority: 3 - }); - } - - public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise { - if (!message.guild || !message.guild) return false; - if (message.author.isOwner() || message.author.isSuperUser()) return false; // super users bypass guild disabled commands - - if ((await message.guild.getSetting('disabledCommands'))?.includes(command?.id)) { - client.console.debug(`disabledGuildCommand blocked message.`); - return true; - } - return false; - } -} -- cgit