go: Do not show admin commands in help message

master
Luther Wen Xu 2019-10-15 23:53:52 +07:00
parent 093f57b6ee
commit 646f904755
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 3 additions and 0 deletions

@ -17,6 +17,9 @@ func GenerateHelpEmbed() {
SetDescription(config.HelpDescription) SetDescription(config.HelpDescription)
for _, cmd := range Commands { for _, cmd := range Commands {
if cmd.Admin {
continue
}
usage := cmd.Usage usage := cmd.Usage
if usage == "" { if usage == "" {
usage = "No usage provided" usage = "No usage provided"