From 304144c607b7c00fecbb25237c853906818e7c59 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 7 May 2021 07:58:25 -0400 Subject: [PATCH] Fix idFromUsername --- auth.go | 2 +- commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }