diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:45:31 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:45:31 -0400 |
commit | cca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (patch) | |
tree | 2b2adebc166ac033520e5b582773e63fbdc5ddb9 /src/commands/info/help.ts | |
parent | 13ba1ad552047eb9386e91d542a975c4bef58b08 (diff) | |
download | tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.gz tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.bz2 tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.zip |
refactor: this.client.util -> util
Diffstat (limited to 'src/commands/info/help.ts')
-rw-r--r-- | src/commands/info/help.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 3c75645..a644755 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -61,11 +61,11 @@ export default class HelpCommand extends BushCommand { } if (!this.client.guilds.cache.get(this.client.config.supportGuild.id).members.cache.has(message.author.id)) { row.addComponents( - new MessageButton({ - style: 'LINK', - label: 'Support Server', - url: this.client.config.supportGuild.invite - }) + new MessageButton({ + style: 'LINK', + label: 'Support Server', + url: this.client.config.supportGuild.invite + }) ); } row.addComponents( @@ -74,8 +74,8 @@ export default class HelpCommand extends BushCommand { label: 'GitHub', url: packageDotJSON.repository }) - ) - + ); + const isOwner = this.client.isOwner(message.author); const isSuperUser = this.client.isSuperUser(message.author); const command = args.command @@ -85,7 +85,7 @@ export default class HelpCommand extends BushCommand { : null; if (!isOwner) args.showHidden = false; if (!command || command.completelyHide) { - const embed = new MessageEmbed().setColor(this.client.util.colors.default).setTimestamp(); + const embed = new MessageEmbed().setColor(util.colors.default).setTimestamp(); if (message.guild) { embed.setFooter(`For more information about a command use ${prefix}help <command>`); } @@ -114,11 +114,11 @@ export default class HelpCommand extends BushCommand { } const embed = new MessageEmbed() - .setColor(this.client.util.colors.default) - .setTitle(`\`${command.description?.usage || `${this.client.util.emojis.error} This command does not have usages.`}\``) + .setColor(util.colors.default) + .setTitle(`\`${command.description?.usage || `${util.emojis.error} This command does not have usages.`}\``) .addField( 'Description', - `${command.description?.content || `${this.client.util.emojis.error} This command does not have a description.`} ${ + `${command.description?.content || `${util.emojis.error} This command does not have a description.`} ${ command.ownerOnly ? '\n__Developer Only__' : '' } ${command.superUserOnly ? '\n__Super User Only__' : ''}` ); |