aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-30 07:37:48 -0500
committerRapptz <[email protected]>2015-11-30 07:37:48 -0500
commit343e3376ead693bbf02837e6682ebe1b958b6229 (patch)
treeaab2e03a7747203e5d9e55bdce642db68b8c6006 /docs
parenton_status event now has the old game ID and old status as parameters. (diff)
downloaddiscord.py-343e3376ead693bbf02837e6682ebe1b958b6229.tar.xz
discord.py-343e3376ead693bbf02837e6682ebe1b958b6229.zip
on_member_update now takes in the older member state as a parameter.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst
index f1e0ec5b..935f05dc 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -184,11 +184,19 @@ to handle it, which defaults to print a traceback and ignore the exception.
:param member: The :class:`Member` that joined or left.
-.. function:: on_member_update(member)
+.. function:: on_member_update(before, after)
Called when a :class:`Member` updates their profile.
- :param member: The :class:`Member` that updated their profile with the updated info.
+ This is called when one or more of the following things change:
+
+ - status
+ - game playing
+ - avatar
+ - nickname
+
+ :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_server_join(server)