aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-30 03:31:03 -0500
committerRapptz <[email protected]>2015-11-30 03:31:47 -0500
commit307392ff19c5e0a5bddfc67af010d4df52e24db8 (patch)
tree5f0769f684afb91fee34d2d38d6c0c5c7a86ea9e /docs
parentMiscellaneous documentation fixes. (diff)
downloaddiscord.py-307392ff19c5e0a5bddfc67af010d4df52e24db8.tar.xz
discord.py-307392ff19c5e0a5bddfc67af010d4df52e24db8.zip
on_status event now has the old game ID and old status as parameters.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 39b96014..f1e0ec5b 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -152,11 +152,13 @@ to handle it, which defaults to print a traceback and ignore the exception.
:param before: A :class:`Message` of the previous version of the message.
:param after: A :class:`Message` of the current version of the message.
-.. function:: on_status(member)
+.. function:: on_status(member, old_game_id, old_status)
Called whenever a :class:`Member` changes their status or game playing status.
:param member: The :class:`Member` who has had their status changed.
+ :param old_game_id: The game ID the member had before it changed.
+ :param old_status: The status the member had before it changed.
.. function:: on_channel_delete(channel)
on_channel_create(channel)