diff options
| author | Rapptz <[email protected]> | 2015-09-03 04:22:46 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-09-03 04:22:46 -0400 |
| commit | c98a723f069fbc706aa7ba6cb355d37a29f50c48 (patch) | |
| tree | 9a2ffc9c5821bfd213ed2d39889b1df226e04775 /docs | |
| parent | WebSocket gateway now properly uses the auth headers. (diff) | |
| download | discord.py-c98a723f069fbc706aa7ba6cb355d37a29f50c48.tar.xz discord.py-c98a723f069fbc706aa7ba6cb355d37a29f50c48.zip | |
Add on_server_create and on_server_delete events.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst index d6a9c2c4..c74ea20a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 -------------- |