From 343e3376ead693bbf02837e6682ebe1b958b6229 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 30 Nov 2015 07:37:48 -0500 Subject: on_member_update now takes in the older member state as a parameter. --- docs/api.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'docs/api.rst') 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) -- cgit v1.2.3