mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 00:34:06 +00:00
Document Client.run reconnection idiosyncrasy.
This commit is contained in:
parent
4a25011ee1
commit
e75edc2e57
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user