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 User Profile monitoring #6

Merged
merged 2 commits into from
May 13, 2024
Merged

Fix User Profile monitoring #6

merged 2 commits into from
May 13, 2024

Conversation

ivystopia
Copy link
Contributor

@ivystopia ivystopia commented May 13, 2024

Changes

  • Stops the notification from popping up constantly, even when there have been no profile changes.
  • Improves the notification popup; it now shows which properties have been updated.

Notes

User Profile Monitoring only works when viewing a DM with a user, or when viewing a user's profile directly.

Discord itself is responsible for sending the USER_PROFILE_FETCH_SUCCESS event, which only happens in those specific cases.

Perhaps in the future, I can find a workaround to poll whitelisted users periodically. Until then, this PR fixes bugs, and has not broken any existing features, so I am proposing it for merge.

Refactored that section of the code to properly check for profile updates.

Involves a workaround where the payload data is normalised within the function - this should ideally be applied to the whole script, but I wanted to fix this one feature for now
@zastlx zastlx merged commit c2010af into zastlx:main May 13, 2024
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.

None yet

2 participants