Bugfixes
This commit is contained in:
parent
88ba1cea73
commit
bc6dc28b0a
6
main.go
6
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user