Skip to content

feat: add on_raw_member_update event#3012

Merged
Paillat-dev merged 25 commits into
Pycord-Development:masterfrom
Soheab:feat/onrawmemberupdate
Mar 3, 2026
Merged

feat: add on_raw_member_update event#3012
Paillat-dev merged 25 commits into
Pycord-Development:masterfrom
Soheab:feat/onrawmemberupdate

Conversation

@Soheab

@Soheab Soheab commented Nov 29, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR adds a new event called on_raw_member_update. This event is dispatched regardless of whether the member is cached. Handy for bots with chunking disabled and other reasons.

Fixes #3001

Information

  • 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, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@pycord-app

pycord-app Bot commented Nov 29, 2025

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3012/head:pr-3012
git checkout pr-3012

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3012/head

@Soheab
Soheab force-pushed the feat/onrawmemberupdate branch from 385d39a to e13a20a Compare November 29, 2025 18:12
Lulalaby
Lulalaby previously approved these changes Nov 29, 2025
@Paillat-dev Paillat-dev added hold: testing This pull request requires further testing priority: medium Medium Priority labels Nov 29, 2025
Comment thread discord/member.py
Comment thread docs/api/events.rst Outdated
Comment thread discord/state.py Outdated
Comment thread discord/state.py Outdated
Co-authored-by: Paillat <[email protected]>
Signed-off-by: Soheab <[email protected]>

@NeloBlivion NeloBlivion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, works fine with one adjustment required
idk if it's really an issue but for some reason my bot is firing user_update before raw_member_update, can anyone repro?

Comment thread discord/types/member.py Outdated
Comment thread discord/state.py Outdated
Comment thread CHANGELOG.md
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Signed-off-by: Lala Sabathil <[email protected]>
Lulalaby
Lulalaby previously approved these changes Mar 2, 2026

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Paillat-dev
Paillat-dev merged commit 795d031 into Pycord-Development:master Mar 3, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold: testing This pull request requires further testing priority: medium Medium Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make on_member_update fire even when the member is not cached

5 participants