Skip to content

Conversation

LeonTheDev-io
Copy link
Contributor

Versioning information

  • This includes major changes (breaking changes)
  • This includes minor changes (minimal usage changes, minor new features)
  • This includes patches (bug fixes)
  • This does not change functionality at all (code refactoring, comments)

Is this related to an issue?

Mentioned in: #336

Changes made

  • Added users worker, for handling avatar downloads (src/lib/workers/users.js)
  • Added getAvatarData() method for returning the correct server/global avatar hash along with CDN-URL to src/lib/users.js
  • Modified src/lib/tickets/archiver.js to use save avatar and use new getAvatarData()

Confirmations

  • I have updated related documentation (if necessary)
  • My changes use consistent code style
  • My changes have been tested and confirmed to work

- Replaces manual avatar CDN URL construction with Discord.js's `avatarURL()` methods.
- Defaults to optimized formats like webp instead of the previously hardcoded .png
for non-animated avatars, which significantly reduced avatar size (e.g., from 24 KB to 1 KB).
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