From 646f9047550dc32bc7b436ad8ebe5f1709ca1602 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Tue, 15 Oct 2019 23:53:52 +0800 Subject: [PATCH] go: Do not show admin commands in help message --- GoBot/discord/modules/help.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GoBot/discord/modules/help.go b/GoBot/discord/modules/help.go index d9ac199..7a18de4 100644 --- a/GoBot/discord/modules/help.go +++ b/GoBot/discord/modules/help.go @@ -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"