Skip to content

Commit 1808959

Browse files
committed
docs: document new payload and event
1 parent e59e4d0 commit 1808959

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

discord/flags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ def members(self):
715715
- :func:`on_raw_member_remove`
716716
- :func:`on_member_update`
717717
- :func:`on_user_update`
718+
- :func:`on_raw_member_update`
718719
719720
This also corresponds to the following attributes and classes in terms of cache:
720721

docs/api/events.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,3 +1495,16 @@ Soundboard Sound
14951495

14961496
:param sound: The soundboard sound that was created.
14971497
:type sound: :class:`SoundboardSound`
1498+
1499+
.. function:: on_raw_member_update(payload)
1500+
1501+
Called when a :class:`Member` updates their profile.
1502+
Unlike :func:`on_member_update`, this is called regardless of the
1503+
state of the internal member cache.
1504+
1505+
This requires :attr:`Intents.members` to be enabled.
1506+
1507+
.. versionadded:: 2.4
1508+
1509+
:param payload: The raw event payload data.
1510+
:type payload: :class:`RawMemberUpdateEvent`

0 commit comments

Comments
 (0)