forked from Supositware/Haha-Yes
Only show 1 prefix at the top
This commit is contained in:
parent
15d124ae55
commit
0d59245b30
1 changed files with 3 additions and 3 deletions
|
@ -39,13 +39,13 @@ class HelpCommand extends Command {
|
||||||
|
|
||||||
const embed = this.client.util.embed()
|
const embed = this.client.util.embed()
|
||||||
.setColor(0xFFAC33)
|
.setColor(0xFFAC33)
|
||||||
.setTitle(`\`${prefix}${command.aliases[0]} ${description.usage}\``)
|
.setTitle(`\`${prefix[0]}${command.aliases[0]} ${description.usage}\``)
|
||||||
.addField('Description', description.content);
|
.addField('Description', description.content);
|
||||||
|
|
||||||
for (const field of description.fields) embed.addField(field.name, field.value);
|
for (const field of description.fields) embed.addField(field.name, field.value);
|
||||||
|
|
||||||
if (description.examples.length) {
|
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);
|
embed.addField('Examples', `\`${text} ${description.examples.join(`\`\n\`${text} `)}\``, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class HelpCommand extends Command {
|
||||||
.addField('Command List',
|
.addField('Command List',
|
||||||
[
|
[
|
||||||
'This is a list of commands.',
|
'This is a list of commands.',
|
||||||
`To view details for a command, do \`${prefix}help <command>\`.`
|
`To view details for a command, do \`${prefix[0]}help <command>\`.`
|
||||||
]);
|
]);
|
||||||
|
|
||||||
for (const category of this.handler.categories.values()) {
|
for (const category of this.handler.categories.values()) {
|
||||||
|
|
Loading…
Reference in a new issue