make the prefix array show better

merge-requests/4/head
loicbersier 5 years ago
parent ec5f8774a0
commit 7417c5f79d

@ -41,7 +41,7 @@ class HelpCommand extends Command {
.setColor(0xFFAC33) .setColor(0xFFAC33)
.setTitle(`\`${prefix[0]}${command.aliases[0]} ${description.usage}\``) .setTitle(`\`${prefix[0]}${command.aliases[0]} ${description.usage}\``)
.addField('Description', description.content) .addField('Description', description.content)
.setFooter(`All the available prefix: ${prefix}`); .setFooter(`All the available prefix: ${prefix.join('')}`);
for (const field of description.fields) embed.addField(field.name, field.value); for (const field of description.fields) embed.addField(field.name, field.value);
@ -65,7 +65,7 @@ class HelpCommand extends Command {
'This is a list of commands.', 'This is a list of commands.',
`To view details for a command, do \`${prefix[0]}help <command>\`.` `To view details for a command, do \`${prefix[0]}help <command>\`.`
]) ])
.setFooter(`All the available prefix: ${prefix}`); .setFooter(`All the available prefix: ${prefix.join('')}`);
for (const category of this.handler.categories.values()) { for (const category of this.handler.categories.values()) {
const title = { const title = {

Loading…
Cancel
Save