diff --git a/main.go b/main.go index 90355aa..ecca514 100644 --- a/main.go +++ b/main.go @@ -122,10 +122,10 @@ func getUsernameFromMember(member *discordgo.Member) string { var userName string if member.Nick != "" { userName = member.Nick - } else if member.User != nil && member.User.Username != "" { - userName = member.User.Username + } else if member.User.GlobalName != "" { + userName = member.User.GlobalName } else { - userName = "UnknownUser" + userName = member.User.Username } return userName }