From 6127921ab3b5c13c25f2050a0f9d728cc868b848 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 11 Apr 2020 17:25:04 +0200 Subject: [PATCH] Show options flag too --- commands/utility/help.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/utility/help.js b/commands/utility/help.js index e9c17da5..fade9df7 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -66,6 +66,10 @@ class HelpCommand extends Command { embed.addField('Command flags', `\`${command.contentParser.flagWords.join('` `')}\``, true); } + if (command.contentParser.optionFlagWords.length) { + embed.addField('Command options flags', `\`${command.contentParser.optionFlagWords.join('` `')}\``, true); + } + if (fs.existsSync(`./asset/img/command/${command.category.id}/${command.id}.png`)) { embed.attachFiles(`./asset/img/command/${command.category.id}/${command.id}.png`); embed.setImage(`attachment://${command.id}.png`);