aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index c9b5d9c6..c5d44a6c 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -573,7 +573,14 @@ class Client(object):
"""Runs the client and allows it to receive messages and events.
This function can raise a :exc:`GatewayNotFound` exception while attempting
- to reconnect."""
+ to reconnect.
+
+ .. note::
+
+ This function attempts to reconnect if the websocket got closed
+ without explicitly calling :meth:`logout`. When this reconnect is
+ triggered, the :func:`discord.on_ready` event is called again.
+ """
log.info('Client is being run')
self.ws.run()