Skip to content

Commit

Permalink
Fix lint/build
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Feb 26, 2024
1 parent c267731 commit fc32483
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion discord/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ def _from_data(self, data: Union[BaseThreadMemberPayload, ThreadMemberPayload])
state._handle_member_update(guild, member_data)
presence = data.get('presence')
if presence is not None:
state._parse_presence_update(guild, presence)
state._handle_presence_update(guild, presence)

@property
def thread(self) -> Thread:
Expand Down
32 changes: 29 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -979,13 +979,34 @@ Members
~~~~~~~~

.. function:: on_member_join(member)
on_member_remove(member)

Called when a :class:`Member` join or leaves a :class:`Guild`.
Called when a :class:`Member` joins a :class:`Guild`.

:param member: The member who joined or left.
:param member: The member who joined.
:type member: :class:`Member`

.. function:: on_member_remove(member)

Called when a :class:`Member` leaves a :class:`Guild`.

If the guild or member could not be found in the internal cache this event
will not be called, you may use :func:`on_raw_member_remove` instead.

:param member: The member who left.
:type member: :class:`Member`

.. function:: on_raw_member_remove(payload)

Called when a :class:`Member` leaves a :class:`Guild`.

Unlike :func:`on_member_remove`
this is called regardless of the guild or member being in the internal cache.

.. versionadded:: 2.1

:param payload: The raw event payload data.
:type payload: :class:`RawMemberRemoveEvent`

.. function:: on_member_update(before, after)

Called when a :class:`Member` updates their profile.
Expand Down Expand Up @@ -7911,6 +7932,11 @@ RawEvent
.. autoclass:: RawThreadDeleteEvent()
:members:

.. attributetable:: RawMemberRemoveEvent

.. autoclass:: RawMemberRemoveEvent()
:members:

.. attributetable:: RawMessageAckEvent

.. autoclass:: RawMessageAckEvent()
Expand Down
2 changes: 2 additions & 0 deletions docs/guild_subscriptions.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

.. currentmodule:: discord

.. _guild_subscriptions:
Expand Down

0 comments on commit fc32483

Please sign in to comment.