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

Some nice changes to getAvatarMaterial #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Srlion
Copy link

@Srlion Srlion commented Dec 29, 2024

  • Use PNG as file ext, no need to check file ext type, as Material function will work even if the file format doesn't match.
  • Fix a bug where it never loads from cache because it was checking if 100 (example) > AVATAR_IMAGE_CACHE_EXPIRES = 86400 (It only loaded it if it was expired lol)
  • Handle a case for bots to avoid doing an HTTP request for them.
  • Add mips to Material to make sure it looks good on different scales.

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.

1 participant