clean up, make tests pass
This commit is contained in:
parent
4a060b56df
commit
ea6387f64a
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue