|
|
|
@ -14,7 +14,7 @@ func ready(s *discordgo.Session, event *discordgo.Ready) {
@@ -14,7 +14,7 @@ func ready(s *discordgo.Session, event *discordgo.Ready) {
|
|
|
|
|
|
|
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
|
defer log.PanicSafe() |
|
|
|
|
log.LogDebug("Member has been updated") |
|
|
|
|
log.LogDebug("Member %+v has been updated", m.User.Username) |
|
|
|
|
for role := range m.Roles { |
|
|
|
|
if fmt.Sprintf("%+v", role) == config.MonitorRole { |
|
|
|
|
log.LogDebug("Role found, Monitor Role") |
|
|
|
@ -25,7 +25,7 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
@@ -25,7 +25,7 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
|
|
|
|
|
saveConfig() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
log.LogDebug("Monitor Role not found") |
|
|
|
|
log.LogDebug("Monitor Role not found: %+v != %+v", fmt.Sprintf("%+v", role), config.MonitorRole) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|