diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/info/help.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 3b5e538..2f4f6b4 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -33,8 +33,9 @@ export default class HelpCommand extends BushCommand { }); } - private generateEmbed(command?: BushCommand): MessageEmbed { - const prefix = this.handler.prefix; + private async generateEmbed(command?: BushCommand): Promise<MessageEmbed> { + //@ts-ignore + const prefix = await this.handler.prefix(); if (!command) { const embed = new MessageEmbed() .addField( @@ -97,12 +98,12 @@ export default class HelpCommand extends BushCommand { ): Promise<void> { if (command) { await message.reply( - this.generateEmbed( + await this.generateEmbed( this.handler.findCommand(command.value) as BushCommand ) ); } else { - await message.reply(this.generateEmbed()); + await message.reply(await this.generateEmbed()); } } } |