fixed typo and added all the prefix in footer when showing help for a command
This commit is contained in:
parent
d84192d7fe
commit
afacc76e8a
1 changed files with 3 additions and 2 deletions
|
@ -40,7 +40,8 @@ class HelpCommand extends Command {
|
||||||
const embed = this.client.util.embed()
|
const embed = this.client.util.embed()
|
||||||
.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}`);
|
||||||
|
|
||||||
for (const field of description.fields) embed.addField(field.name, field.value);
|
for (const field of description.fields) embed.addField(field.name, field.value);
|
||||||
|
|
||||||
|
@ -64,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 aviable prefix: ${prefix}`);
|
.setFooter(`All the available prefix: ${prefix}`);
|
||||||
|
|
||||||
for (const category of this.handler.categories.values()) {
|
for (const category of this.handler.categories.values()) {
|
||||||
const title = {
|
const title = {
|
||||||
|
|
Loading…
Reference in a new issue