Add on_server_create and on_server_delete events.

This commit is contained in:
Rapptz
2015-09-03 04:22:46 -04:00
parent 4124b097c7
commit c98a723f06
2 changed files with 77 additions and 54 deletions

View File

@ -80,6 +80,17 @@ All events are 'sandboxed', in that if an exception is thrown while the event is
:param member: The :class:`Member` that joined or left.
.. function:: on_server_create(server)
on_server_delete(server)
Called when a :class:`Server` is created or deleted.
Note that the server that is created must belong to the :class:`Client` and the server
that got deleted must have been part of the client's participating servers.
:param server: The :class:`Server` that got created or deleted.
Data Classes
--------------