From 0d59245b30e4102be53d54ed2910ec3c5dd55317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sat, 30 Mar 2019 04:58:31 +0100 Subject: [PATCH] Only show 1 prefix at the top --- commands/utility/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/utility/help.js b/commands/utility/help.js index 9283bc4f..cb197bab 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -39,13 +39,13 @@ class HelpCommand extends Command { const embed = this.client.util.embed() .setColor(0xFFAC33) - .setTitle(`\`${prefix}${command.aliases[0]} ${description.usage}\``) + .setTitle(`\`${prefix[0]}${command.aliases[0]} ${description.usage}\``) .addField('Description', description.content); for (const field of description.fields) embed.addField(field.name, field.value); if (description.examples.length) { - const text = `${prefix}${command.aliases[0]}`; + const text = `${prefix[0]}${command.aliases[0]}`; embed.addField('Examples', `\`${text} ${description.examples.join(`\`\n\`${text} `)}\``, true); } @@ -62,7 +62,7 @@ class HelpCommand extends Command { .addField('Command List', [ 'This is a list of commands.', - `To view details for a command, do \`${prefix}help \`.` + `To view details for a command, do \`${prefix[0]}help \`.` ]); for (const category of this.handler.categories.values()) {