aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/help.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-05-28 16:35:47 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-05-28 16:35:47 -0400
commitb0bdb217435ac1c8263ba6031bf7d7612f4b10ca (patch)
tree4da2718ba244df0d6355c43ee7db3249224f8b8c /src/commands/info/help.ts
parent942c3b44deda0b1749fb50d4f66e62eec62fa0cd (diff)
downloadtanzanite-b0bdb217435ac1c8263ba6031bf7d7612f4b10ca.tar.gz
tanzanite-b0bdb217435ac1c8263ba6031bf7d7612f4b10ca.tar.bz2
tanzanite-b0bdb217435ac1c8263ba6031bf7d7612f4b10ca.zip
fix "function () { [native code] }"
Diffstat (limited to 'src/commands/info/help.ts')
-rw-r--r--src/commands/info/help.ts9
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());
}
}
}