Skip to content

Commit

Permalink
Use GlobalName for .users
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanGuigou committed Nov 26, 2024
1 parent 299ea55 commit 7bfee3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-is-gud/super.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ func getUsername(dg *discordgo.Session, uid string) string {
if err != nil {
return fmt.Sprintf("<unknown-%s>", uid)
}
return fmt.Sprintf("%s", user)
return user.GlobalName
}

0 comments on commit 7bfee3a

Please sign in to comment.