Browse Source

Fix idFromUsername

master
Gregory Rudolph 4 years ago
parent
commit
304144c607
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      auth.go

2
auth.go

@ -176,7 +176,7 @@ func idFromUsername(username string) string { @@ -176,7 +176,7 @@ func idFromUsername(username string) string {
log.LogInfo("reqPass guild is %+v.", config.GuildID)
if err == nil {
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
log.LogInfo("User ID found for %+v as %+v", username, userID)
}

Loading…
Cancel
Save