From e1c613829950a534d9f45c00a033b83575be3b3c Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 17 Jun 2022 20:03:05 -0400 Subject: remove global client variable --- src/inhibitors/command/globalDisabledCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inhibitors/command/globalDisabledCommand.ts') diff --git a/src/inhibitors/command/globalDisabledCommand.ts b/src/inhibitors/command/globalDisabledCommand.ts index 7e855ae..f013183 100644 --- a/src/inhibitors/command/globalDisabledCommand.ts +++ b/src/inhibitors/command/globalDisabledCommand.ts @@ -12,8 +12,8 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor { public async exec(message: CommandMessage | SlashMessage, command: BushCommand): Promise { if (message.author.isOwner()) return false; - if (client.cache.global.disabledCommands.includes(command?.id)) { - void client.console.verbose( + if (this.client.cache.global.disabledCommands.includes(command?.id)) { + void this.client.console.verbose( 'disabledGlobalCommand', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild?.name}>>.` ); -- cgit