This commit is contained in:
Joren 2024-07-06 22:56:19 +02:00
parent 88ba1cea73
commit bc6dc28b0a
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55

View File

@ -122,10 +122,10 @@ func getUsernameFromMember(member *discordgo.Member) string {
var userName string var userName string
if member.Nick != "" { if member.Nick != "" {
userName = member.Nick userName = member.Nick
} else if member.User != nil && member.User.Username != "" { } else if member.User.GlobalName != "" {
userName = member.User.Username userName = member.User.GlobalName
} else { } else {
userName = "UnknownUser" userName = member.User.Username
} }
return userName return userName
} }