forked from Supositware/Haha-Yes
Make help command show permissions required
This commit is contained in:
parent
23d03cd095
commit
ccdaff0816
1 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,14 @@ class HelpCommand extends Command {
|
|||
embed.addField('Aliases', `\`${command.aliases.join('` `')}\``, true);
|
||||
}
|
||||
|
||||
if (command.userPermissions) {
|
||||
embed.addField('User permission', `\`${command.userPermissions.join('` `')}\``, true);
|
||||
}
|
||||
|
||||
if (command.clientPermissions) {
|
||||
embed.addField('Bot permission', `\`${command.clientPermissions.join('` `')}\``, true);
|
||||
}
|
||||
|
||||
return message.util.send({ embed });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue