Skip to content

Commit

Permalink
feat: Use signatures method in argError if no usage set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Sep 3, 2021
1 parent 1012b1b commit a23676b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/argError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export function argError(ctx: CommandContext, error: string) {
description: error,
});

if (ctx.command.usage) embed.addField('Syntax :', ctx.command.usage);
embed.addField('Syntax :', ctx.command.usage ?? ctx.command.signatures());
return ctx.reply({embed});
}

0 comments on commit a23676b

Please sign in to comment.