diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:47:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:47:13 -0400 |
commit | 80d5b5b11ae261945dc725a0a80115922003afcf (patch) | |
tree | 16c9f251b4d53456b4b5340c0203d35fd5870859 /src/inhibitors/commands | |
parent | cca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff) | |
download | tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2 tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip |
refactor: this.client -> client
Diffstat (limited to 'src/inhibitors/commands')
-rw-r--r-- | src/inhibitors/commands/globalDisabledCommand.ts | 4 | ||||
-rw-r--r-- | src/inhibitors/commands/guildDisabledCommand.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/inhibitors/commands/globalDisabledCommand.ts b/src/inhibitors/commands/globalDisabledCommand.ts index 3ce39c2..2954393 100644 --- a/src/inhibitors/commands/globalDisabledCommand.ts +++ b/src/inhibitors/commands/globalDisabledCommand.ts @@ -11,8 +11,8 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor { public async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> { if (message.author.isOwner()) return false; - if (this.client.cache.global.disabledCommands?.includes(command?.id)) { - this.client.console.debug(`disabledGlobalCommand blocked message.`); + if (client.cache.global.disabledCommands?.includes(command?.id)) { + client.console.debug(`disabledGlobalCommand blocked message.`); return true; } } diff --git a/src/inhibitors/commands/guildDisabledCommand.ts b/src/inhibitors/commands/guildDisabledCommand.ts index a036ec5..d16bff7 100644 --- a/src/inhibitors/commands/guildDisabledCommand.ts +++ b/src/inhibitors/commands/guildDisabledCommand.ts @@ -14,7 +14,7 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor { if (message.author.isOwner() || message.author.isSuperUser()) return false; // super users bypass guild disabled commands if ((await message.guild.getSetting('disabledCommands'))?.includes(command?.id)) { - this.client.console.debug(`disabledGuildCommand blocked message.`); + client.console.debug(`disabledGuildCommand blocked message.`); return true; } } |