|
|
@ -189,8 +189,8 @@ func idFromUsername(username string) string { |
|
|
|
|
|
|
|
|
|
|
|
func isAdmin(m *discordgo.Member) bool { |
|
|
|
func isAdmin(m *discordgo.Member) bool { |
|
|
|
log.LogDebug("Checking %+v for %+v", m.Roles, config.AdminRole) |
|
|
|
log.LogDebug("Checking %+v for %+v", m.Roles, config.AdminRole) |
|
|
|
for role := range m.Roles { |
|
|
|
for _, role := range m.Roles { |
|
|
|
if fmt.Sprintf("%+v", role) == config.AdminRole { |
|
|
|
if role == config.AdminRole { |
|
|
|
return true |
|
|
|
return true |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
log.LogDebug("%+v != %+v", role, config.AdminRole) |
|
|
|
log.LogDebug("%+v != %+v", role, config.AdminRole) |
|
|
|