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(PresenceUpdate): correctly add user regardless of their properties #10672

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

Digital39999
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
Using this code, after 1 minute (sweeper time), any event for users that were cached and then swiped will not be fired anymore, this is due to user not being created in cache at all even though it can be fully partial as types for newPresence state, this adds user regardless of the data and allows event to be fired (similarly how it adds for guild emojis).

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@Digital39999 Digital39999 requested a review from a team as a code owner January 1, 2025 09:52
Copy link

vercel bot commented Jan 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 10:17am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2025 10:17am

@kodiakhq kodiakhq bot merged commit 1e29bb4 into discordjs:main Jan 13, 2025
6 checks passed
Jiralite pushed a commit that referenced this pull request Jan 13, 2025
#10672)

* fix(PresenceUpdate): correctly add user regardless of their properties

* refactor(PresenceUpdate): reflect partials

* refactor(PresenceUpdate): prettier

* refactor(PresenceUpdate): add import

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants