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

Fixed users not being updated on PRESENCE_UPDATEs #465

Merged
merged 1 commit into from
Jan 25, 2017
Merged

Fixed users not being updated on PRESENCE_UPDATEs #465

merged 1 commit into from
Jan 25, 2017

Conversation

Sentinent
Copy link
Contributor

Previously, the user object in the USER_PRESENCE events were not being used, leading to #407. Also fixes some of the problems in #272.

@foxbot
Copy link
Member

foxbot commented Jan 6, 2017

Does this change raise the relevant events for changes to users in presences?

@foxbot foxbot added this to the 1.0 RC milestone Jan 6, 2017
@Sentinent
Copy link
Contributor Author

The events were already previous raised, but with inaccurate information. At line 1467, the client checks to see if fields in the payload were specified and raised the UserUpdated event. The problem was that the user object from the event were never used after receiving them, making the client not update its user cache.

On rc00544 after changing username:
image

@Auralytical Auralytical merged commit 4665b63 into discord-net:dev Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants