clean up, make tests pass

This commit is contained in:
vel 2021-08-21 20:54:31 -07:00
parent 4a060b56df
commit ea6387f64a
Signed by: velvox
GPG Key ID: 1C8200C1D689CEF5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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