on_member_update now takes in the older member state as a parameter.

This commit is contained in:
Rapptz
2015-11-30 07:37:48 -05:00
parent 307392ff19
commit 343e3376ea
2 changed files with 15 additions and 7 deletions

View File

@ -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)