-
Notifications
You must be signed in to change notification settings - Fork 170
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
Incorrect reserialization on presence sync #765
Comments
Hi! This is what I think is happening here (from a quick glance). User presence is quite complicated. When user status is updated on a different client, the client modifies user settings to save and propagate the status to other clients. When a user settings update is received, clients are expected to update their gateway session's presence with the new status. The library does this by default. When the new presence info is being constructed to be sent to Discord, it looks like the streaming activity is being reserialized incorrectly... The activity implementation in the library is in need of a refactor. A temporary mitigation to this would be to disable the syncing behavior by passing |
well thank you for telling me that cause for a moment I thought I was doing something wrong.. but after talking to a lot of other devs they did point the issue is with the library not my code, I hope this gets fixed soon as I do use it quite often and it's annoying when users tell me they can't see my activity! |
also short update on this cause I forgot to mention it does this only for the streaming activity the whole activity disappears when a user sets his custom status regardless if through selfbot or not, not only assets disappearing |
oh yeah and also your suggestion doesn't fix it either it still persists |
Summary
assets breaking
Reproduction Steps
pass a streaming type activity using change_presence method with assets url name and details, go on discord edit your custom status through the profile no need to even touch the selfbot just use it to run the presence, wait a bit and your activity's assets are now gone but at least the activity will remain (sometimes it does disappear probably discord's fault though)
I'm including my method for creating the presence below, other activities do work fine (i think, haven't tested extensively) it's just the streaming one for some odd reason P.S ignore the custom_status method yes it happens when i use it too but it also happens without using it so it's quite irrelevant
Code
Expected Results
the assets not to disappear from the activity lmao?
Actual Results
the activity continues running with broken assets
and just in case you didn't understand that break happens when i play with this little fella :)
System Information
root@red-owl-04917:~# python3 -m discord -v
root@red-owl-04917:~#
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: