Handle GUILD_UPDATE

This commit is contained in:
Rapptz
2015-12-05 16:57:29 -05:00
parent 63f4a769c6
commit 80b32e769e
4 changed files with 32 additions and 9 deletions

View File

@ -243,6 +243,18 @@ to handle it, which defaults to print a traceback and ignore the exception.
:param server: The :class:`Server` that got removed.
.. function:: on_server_update(before, after)
Called when a :class:`Server` updates, for example:
- Changed name
- Changed AFK channel
- Changed AFK timeout
- etc
:param before: The :class:`Server` prior to being updated.
:param after: The :class:`Server` after being updated.
.. function:: on_server_role_create(server, role)
on_server_role_delete(server, role)