From 694461a303e599b40a137d9bfd2b32ecdd7f191c Mon Sep 17 00:00:00 2001 From: Bsian Date: Fri, 1 Nov 2019 00:22:11 +0000 Subject: [PATCH] Fix command name for subcommands --- src/commands/help.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index d8da7ea..d44954f 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -55,7 +55,7 @@ export default class Help extends Command { const aliases = cmd.aliases.map((alias) => `${this.client.config.prefix}${alias}`).join(', '); const embed = new RichEmbed(); embed.setTimestamp(); embed.setFooter(`Requested by ${message.author.username}#${message.author.discriminator}`, message.author.avatarURL); - embed.setTitle(`${this.client.config.prefix}${cmd.name}`); embed.setAuthor(`${this.client.user.username}#${this.client.user.discriminator}`, this.client.user.avatarURL); + embed.setTitle(`${this.client.config.prefix}${cmd.parentName}`); embed.setAuthor(`${this.client.user.username}#${this.client.user.discriminator}`, this.client.user.avatarURL); const description = `**Description**: ${cmd.description}\n**Usage:** ${cmd.usage}\n**Aliases:** ${aliases}\n${displayedPerms}`; embed.setDescription(description); // @ts-ignore