Debugging

This commit is contained in:
2021-05-06 07:03:11 -04:00
parent fd5d3ce0e7
commit 5dc1f53a59
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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
}