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

Fix the calculation of a default user avatar index #398

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Fix the calculation of a default user avatar index #398

merged 3 commits into from
Jul 18, 2023

Conversation

PlavorSeol
Copy link
Contributor

@PlavorSeol PlavorSeol commented Jul 17, 2023

Closes #397
For users that migrated their username, the calculation of a default avatar index should be done with (userID >> 22) % 6, not % 5.
Discord documentation

@diamondburned
Copy link
Owner

Can you run go fmt on the code?

@PlavorSeol
Copy link
Contributor Author

Done

@diamondburned diamondburned merged commit 78e456d into diamondburned:v3 Jul 18, 2023
@PlavorSeol PlavorSeol deleted the pr-fix-index-calculation branch July 18, 2023 06:02
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

Successfully merging this pull request may close these issues.

Default avatar is calculated incorrectly for migrated accounts
2 participants