aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 7371537d..5f1466e5 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -439,13 +439,25 @@ to handle it, which defaults to print a traceback and ignoring the exception.
- status
- game playing
- - avatar
- nickname
- roles
:param before: The :class:`Member` that updated their profile with the old info.
:param after: The :class:`Member` that updated their profile with the updated info.
+.. function:: on_user_update(before, after)
+
+ Called when a :class:`User` updates their profile.
+
+ This is called when one or more of the following things change:
+
+ - avatar
+ - username
+ - discriminator
+
+ :param before: The :class:`User` that updated their profile with the old info.
+ :param after: The :class:`User` that updated their profile with the updated info.
+
.. function:: on_guild_join(guild)
Called when a :class:`Guild` is either created by the :class:`Client` or when the