|
|
@ -188,6 +188,7 @@ 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) |
|
|
|
for role := range m.Roles { |
|
|
|
for role := range m.Roles { |
|
|
|
if fmt.Sprintf("%+v", role) == config.AdminRole { |
|
|
|
if fmt.Sprintf("%+v", role) == config.AdminRole { |
|
|
|
return true |
|
|
|
return true |
|
|
|