Fix idFromUsername

This commit is contained in:
2021-05-07 07:58:25 -04:00
parent 2f5c3b6cf3
commit 304144c607
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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
}