aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-08-24 00:00:42 -0400
committerRapptz <[email protected]>2015-08-24 00:00:42 -0400
commit9f601a24b158228c1fa5727121af26fef2a31905 (patch)
tree3b98ffbeeafe86588a754ce38622e5f6d1c9cf91 /docs/api.rst
parentAdd support for channel creation events. (diff)
downloaddiscord.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.rst4
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.