From 795b8ceffefa64262c8ebecaaaf4e1f051162fae Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 27 Aug 2015 17:44:31 -0400 Subject: on_status now takes only a member. --- docs/api.rst | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'docs') diff --git a/docs/api.rst b/docs/api.rst index c9b6de0b..08ec3394 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -45,7 +45,7 @@ All events are 'sandboxed', in that if an exception is thrown while the event is :param response: The received message response after gone through ``json.loads``. .. function:: on_message_delete(message) -.. function:: on_message_edit(before, after) + on_message_edit(before, after) Called when a message is deleted or edited from any given server. If the message is not found in the :attr:`Client.messages` cache, then these events will not be called. This happens if the message @@ -56,16 +56,11 @@ All events are 'sandboxed', in that if an exception is thrown while the event is :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(server, user, status, game_id): +.. function:: on_status(member): - Called whenever a user changes their status or game playing status. + Called whenever a :class:`Member` changes their status or game playing status. - The status is usually either "idle", "online" or "offline". - - :param server: The :class:`Server` the user belongs to. - :param user: The :class:`User` whose status changed. - :param status: The new status of the user. - :param game_id: The game ID that the user is playing. Can be None. + :param server: The :class:`Member` who has had their status changed. .. function:: on_channel_delete(channel) on_channel_create(channel) -- cgit v1.2.3