diff --git a/auth.go b/auth.go index c3cf457..fa06c12 100644 --- a/auth.go +++ b/auth.go @@ -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) } diff --git a/commands.go b/commands.go index 8803917..c41bba4 100644 --- a/commands.go +++ b/commands.go @@ -163,7 +163,7 @@ func RetrieveVerification(b BotCommand) bool { log.LogErrorType(err) return false } - msg := fmt.Sprintf("```%+v\nJoined: %+v\n```", user.User.Username, user.JoinedAt) + msg := fmt.Sprintf("``` %+v\nJoined: %+v\n```", user.User.Username, user.JoinedAt) s.ChannelFileSendWithMessage(m.ChannelID, msg, matches[0], verificationImage) return true }