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

Update Avatar and Username example in iframe playground #26

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

matthova
Copy link
Collaborator

This PR updates our usage of discriminator % 5 for default avatar URIs to instead follow the new default avatar uri pattern called out in the docs https://discord.com/developers/docs/reference#image-formatting-cdn-endpoints
More specifically

  • Updates auth in iframe playground to store guild member info as a part of the auth object
  • Updates iframe playground to render the username and avatar per new pattern
  • Updates react-colyseus to render the username and avatar per new pattern

Iframe playground with default avatar and global_name
Screenshot 2024-03-11 at 12 42 24 PM

Iframe playground with guild-specific avatar and name
Screenshot 2024-03-11 at 12 44 52 PM

React colyseus with all the things
Screenshot 2024-03-11 at 1 21 31 PM

@matthova matthova merged commit 4a9d34c into main Mar 11, 2024
1 check passed
@matthova matthova deleted the matthova/update-avatar-and-name-docs branch March 11, 2024 20:38
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.

2 participants