go: Do not show admin commands in help message

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

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