From 25cf269e2e793de5fefb9aa3f19fb167168e06c6 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 28 May 2021 20:13:49 -0400 Subject: stuff --- src/commands/info/help.ts | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src/commands/info/help.ts') diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 7f91cdf..7f6c8f4 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -43,9 +43,7 @@ export default class HelpCommand extends BushCommand { For additional info on a command, type \`${prefix}help \` ` ) - .setFooter( - `For more information about a command use "${this.client.config.prefix}help "` - ) + .setFooter(`For more information about a command use "${this.client.config.prefix}help "`) .setTimestamp(); for (const category of this.handler.categories.values()) { embed.addField( @@ -61,17 +59,10 @@ export default class HelpCommand extends BushCommand { const embed = new MessageEmbed() .setColor([155, 200, 200]) .setTitle(`\`${command.description.usage ? command.description.usage : ''}\``) - .addField( - 'Description', - `${command.description.content ? command.description.content : ''} ${ - command.ownerOnly ? '\n__Owner Only__' : '' - }` - ); + .addField('Description', `${command.description.content ? command.description.content : ''} ${command.ownerOnly ? '\n__Owner Only__' : ''}`); - if (command.aliases.length > 1) - embed.addField('Aliases', `\`${command.aliases.join('` `')}\``, true); - if (command.description.examples && command.description.examples.length) - embed.addField('Examples', `\`${command.description.examples.join('`\n`')}\``, true); + if (command.aliases.length > 1) embed.addField('Aliases', `\`${command.aliases.join('` `')}\``, true); + if (command.description.examples && command.description.examples.length) embed.addField('Examples', `\`${command.description.examples.join('`\n`')}\``, true); return embed; } } @@ -80,14 +71,9 @@ export default class HelpCommand extends BushCommand { await message.util.send(this.generateEmbed(command)); } - public async execSlash( - message: CommandInteraction, - { command }: { command: SlashCommandOption } - ): Promise { + public async execSlash(message: CommandInteraction, { command }: { command: SlashCommandOption }): Promise { if (command) { - await message.reply( - this.generateEmbed(this.handler.findCommand(command.value) as BushCommand) - ); + await message.reply(this.generateEmbed(this.handler.findCommand(command.value) as BushCommand)); } else { await message.reply(this.generateEmbed()); } -- cgit