Browse Source

Clarify that Client.close is a coroutine.

pull/144/head
Rapptz 9 years ago
parent
commit
7dcf0c059c
  1. 4
      discord/client.py

4
discord/client.py

@ -544,9 +544,9 @@ class Client:
@asyncio.coroutine
def close(self):
"""Closes the websocket connection.
"""|coro|
To reconnect the websocket connection, :meth:`connect` must be used.
Closes the connection to discord.
"""
if self.is_closed:
return

Loading…
Cancel
Save