aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
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.