Skip to content

Add on_raw_member_update event - #10532

Open
Quintenvw wants to merge 5 commits into
Rapptz:masterfrom
Maki-gg:raw-member-update
Open

Quintenvw wants to merge 5 commits into
Rapptz:masterfrom
Maki-gg:raw-member-update

Conversation

@Quintenvw

Copy link
Copy Markdown
Contributor

Summary

This PR adds on_raw_member_update, a raw alternative to on_member_update. It is dispatched for every GUILD_MEMBER_UPDATE regardless of whether the member is in the internal cache.

Currently, if the member isn't cached (eg. because MemberCacheFlags.joined is disabled, or the guild hasn't been chunked), the update is silently dropped. Because of this there is no way to observe member changes. This mirrors the existing on_raw_member_remove / RawMemberRemoveEvent pattern.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

This branch has not been deployed

No deployments
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.

1 participant