From b0bdb217435ac1c8263ba6031bf7d7612f4b10ca Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 28 May 2021 16:35:47 -0400 Subject: fix "function () { [native code] }" --- src/commands/info/help.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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 { + //@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 { 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()); } } } -- cgit