aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorSamSchlegel <[email protected]>2015-12-23 17:35:09 -0500
committerKhazhismel <[email protected]>2015-12-24 00:15:58 -0500
commit2f61d086e4f66eec77ed53edee3f3578639d4e4e (patch)
tree78e3aec15744cdd4ea0a8d3eb33ccc4c9387ce34 /docs/api.rst
parentDon't silently swallow ValueError thrown from on_channel_delete. (diff)
downloaddiscord.py-2f61d086e4f66eec77ed53edee3f3578639d4e4e.tar.xz
discord.py-2f61d086e4f66eec77ed53edee3f3578639d4e4e.zip
Game information is now represented in a Game object
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 935f05dc..c3541f92 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -152,12 +152,12 @@ 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, old_game_id, old_status)
+.. function:: on_status(member, old_game, 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_game_id: The :class:`Game` the member had before it changed.
:param old_status: The status the member had before it changed.
.. function:: on_channel_delete(channel)