From 6445641f9e5bedd885e619316d8fb3000c0d54b0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 23 Aug 2015 02:16:05 -0400 Subject: Add on_status event. --- docs/api.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/api.rst b/docs/api.rst index 937eff70..173964f2 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -50,6 +50,17 @@ This page outlines the different types of events listened to by :meth:`Client.ev :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): + + Called whenever a user 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. + Data Classes -------------- -- cgit v1.2.3