From f534cb23b0c868d3173504da323edf7ebbcb5047 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 11 Apr 2020 17:23:20 +0200 Subject: [PATCH] Show commands flag --- commands/utility/help.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/utility/help.js b/commands/utility/help.js index d867373b..e9c17da5 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -62,6 +62,10 @@ class HelpCommand extends Command { embed.addField('Bot permission', `\`${command.clientPermissions.join('` `')}\``, true); } + if (command.contentParser.flagWords.length) { + embed.addField('Command flags', `\`${command.contentParser.flagWords.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`);