From bc6dc28b0aacc7020a402b757010a3e44289ac91 Mon Sep 17 00:00:00 2001 From: Joren Date: Sat, 6 Jul 2024 22:56:19 +0200 Subject: [PATCH] Bugfixes --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }