From ea6387f64a26974740fba7155c6ba985c6ff0512 Mon Sep 17 00:00:00 2001 From: Riley Date: Sat, 21 Aug 2021 20:54:31 -0700 Subject: [PATCH] clean up, make tests pass --- commands.go | 2 +- guilds.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 01798aa..2954ddf 100644 --- a/commands.go +++ b/commands.go @@ -149,7 +149,7 @@ func AddSlashCommands(guildId string, c chan string) { if err != nil { c <- "Unable to register slash commands :/" log.Errorf("Cannot create '%v' command: %v", v.Name, err) - log.Errorf("%s", v.Options) + log.Errorf("%v", v.Options) return } } diff --git a/guilds.go b/guilds.go index 746a430..100fda6 100644 --- a/guilds.go +++ b/guilds.go @@ -261,7 +261,7 @@ func (g *Guild) MemberOrRoleInList(checkId string, list []string) bool { // Check if the ID represents a role role, err := g.GetRole(checkId) - log.Infof("Role %s", role) + if err == nil { // This is a role; check if this role is in the list for _, mod := range list {