diff options
| author | Rapptz <[email protected]> | 2021-07-04 21:40:30 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-04 21:40:30 -0400 |
| commit | c1c64575985de28aa1d373e14a313e54c7786baf (patch) | |
| tree | 5bdc0a7ab8823d49eeb13d1df5df5036d09e3e6e /docs | |
| parent | Update README to point to 3.8 requirement (diff) | |
| download | discord.py-c1c64575985de28aa1d373e14a313e54c7786baf.tar.xz discord.py-c1c64575985de28aa1d373e14a313e54c7786baf.zip | |
Separate member_update and presence_update events
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst index 5961ee06..ab456e49 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -808,8 +808,6 @@ to handle it, which defaults to print a traceback and ignoring the exception. This is called when one or more of the following things change: - - status - - activity - nickname - roles - pending @@ -821,6 +819,24 @@ to handle it, which defaults to print a traceback and ignoring the exception. :param after: The updated member's updated info. :type after: :class:`Member` +.. function:: on_presence_update(before, after) + + Called when a :class:`Member` updates their presence. + + This is called when one or more of the following things change: + + - status + - activity + + This requires :attr:`Intents.presences` and :attr:`Intents.members` to be enabled. + + .. versionadded:: 2.0 + + :param before: The updated member's old info. + :type before: :class:`Member` + :param after: The updated member's updated info. + :type after: :class:`Member` + .. function:: on_user_update(before, after) Called when a :class:`User` updates their profile. |