From 5dc1f53a59fff4a07e3b3f07a601ebda702d338f Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 6 May 2021 07:03:11 -0400 Subject: [PATCH] Debugging --- auth.go | 1 + commands.go | 1 + 2 files changed, 2 insertions(+) diff --git a/auth.go b/auth.go index 9e215f8..4d723ff 100644 --- a/auth.go +++ b/auth.go @@ -188,6 +188,7 @@ func idFromUsername(username string) string { } func isAdmin(m *discordgo.Member) bool { + log.LogDebug("Checking %+v for %+v", m.Roles, config.AdminRole) for role := range m.Roles { if fmt.Sprintf("%+v", role) == config.AdminRole { return true diff --git a/commands.go b/commands.go index 4b76b32..ac17cc1 100644 --- a/commands.go +++ b/commands.go @@ -83,6 +83,7 @@ func Commands(b BotCommand) bool { print += fmt.Sprintf("```%+v\n%+v\n%+v```\n", cmd.Name, cmd.Keywords, cmd.Help) } } + b.Session.ChannelMessageSend(b.Message.ChannelID, print) return true }