Skip to content

Commit

Permalink
Try to normalize user name to global name
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway authored Jan 6, 2025
1 parent 44c2e07 commit f5ebaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def normalized(self, text):
async def normalize_member(self, member):
if member.bot:
return
normalized = self.normalized(member.nick) or self.normalized(member.name) or LAST_RESORT
normalized = self.normalized(member.nick) or self.normalized(member.global_name) or self.normalized(member.name) or LAST_RESORT
if normalized != member.display_name:
await member.edit(nick=normalized)

Expand Down

0 comments on commit f5ebaff

Please sign in to comment.