Show options flag too

This commit is contained in:
loicbersier 2020-04-11 17:25:04 +02:00
parent f534cb23b0
commit 6127921ab3

View file

@ -66,6 +66,10 @@ class HelpCommand extends Command {
embed.addField('Command flags', `\`${command.contentParser.flagWords.join('` `')}\``, true); 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`)) { if (fs.existsSync(`./asset/img/command/${command.category.id}/${command.id}.png`)) {
embed.attachFiles(`./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`); embed.setImage(`attachment://${command.id}.png`);