diff options
| author | Rapptz <[email protected]> | 2015-08-24 00:00:42 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-08-24 00:00:42 -0400 |
| commit | 9f601a24b158228c1fa5727121af26fef2a31905 (patch) | |
| tree | 3b98ffbeeafe86588a754ce38622e5f6d1c9cf91 /docs/api.rst | |
| parent | Add support for channel creation events. (diff) | |
| download | discord.py-9f601a24b158228c1fa5727121af26fef2a31905.tar.xz discord.py-9f601a24b158228c1fa5727121af26fef2a31905.zip | |
Add logout support and on_disconnect event.
Diffstat (limited to 'docs/api.rst')
| -rw-r--r-- | docs/api.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst index 9909bcd1..1b3648a6 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -26,6 +26,10 @@ All events are 'sandboxed', in that if an exception is thrown while the event is Called when the client is done preparing the data received from Discord. Usually after login is successful and the :attr:`Client.servers` and co. are filled up. +.. function:: on_disconnect() + + Called when the client disconnects for whatever reason. Be it error or manually. + .. function:: on_message(message) Called when a message is created and sent to a server. |