|
|
@ -176,7 +176,7 @@ func idFromUsername(username string) string { |
|
|
|
log.LogInfo("reqPass guild is %+v.", config.GuildID) |
|
|
|
log.LogInfo("reqPass guild is %+v.", config.GuildID) |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|
for _, m := range g { |
|
|
|
for _, m := range g { |
|
|
|
if strings.ToUpper(m.Nick) == strings.ToUpper(username) { |
|
|
|
if strings.ToUpper(m.User.Username) == strings.ToUpper(username) { |
|
|
|
userID = m.User.ID |
|
|
|
userID = m.User.ID |
|
|
|
log.LogInfo("User ID found for %+v as %+v", username, userID) |
|
|
|
log.LogInfo("User ID found for %+v as %+v", username, userID) |
|
|
|
} |
|
|
|
} |
|
|
|