Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pomelo support #61

Open
slice opened this issue May 25, 2023 · 0 comments
Open

Pomelo support #61

slice opened this issue May 25, 2023 · 0 comments

Comments

@slice
Copy link

slice commented May 25, 2023

Discord is changing how usernames work on their platform. This is internally codenamed "Pomelo".

I haven't taken a deep look into how Calamity handles discriminators or usernames, or any potential logic related to looking up users by their usernames. Here's some important notes, though:

  • Pomelo-migrated users have a discriminator of "0". I'm not sure if this field will be outright removed after migration completes.
  • Users have an nullable global_name field, which corresponds to the "Display Name" field in the User Profile Settings.
  • Precedence as to what "name" a user has when being displayed to a human is: guild nickname > display name/global_name > username.

See: discord.py patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant