Show options flag too
This commit is contained in:
parent
f534cb23b0
commit
6127921ab3
1 changed files with 4 additions and 0 deletions
|
@ -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`);
|
||||||
|
|
Loading…
Reference in a new issue