aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/command/globalDisabledCommand.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/command/globalDisabledCommand.ts')
-rw-r--r--src/inhibitors/command/globalDisabledCommand.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/inhibitors/command/globalDisabledCommand.ts b/src/inhibitors/command/globalDisabledCommand.ts
index f013183..4a93f2f 100644
--- a/src/inhibitors/command/globalDisabledCommand.ts
+++ b/src/inhibitors/command/globalDisabledCommand.ts
@@ -1,16 +1,15 @@
-import { BushInhibitor, type BushCommand, type CommandMessage, type SlashMessage } from '#lib';
+import { BotInhibitor, type BotCommand, type CommandMessage, type SlashMessage } from '#lib';
-export default class DisabledGuildCommandInhibitor extends BushInhibitor {
+export default class DisabledGuildCommandInhibitor extends BotInhibitor {
public constructor() {
super('disabledGlobalCommand', {
reason: 'disabledGlobal',
- category: 'command',
type: 'post',
priority: 300
});
}
- public async exec(message: CommandMessage | SlashMessage, command: BushCommand): Promise<boolean> {
+ public async exec(message: CommandMessage | SlashMessage, command: BotCommand): Promise<boolean> {
if (message.author.isOwner()) return false;
if (this.client.cache.global.disabledCommands.includes(command?.id)) {
void this.client.console.verbose(