mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Clarify that Client.close is a coroutine.
This commit is contained in:
parent
53a240e0d3
commit
7dcf0c059c
@ -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…
x
Reference in New Issue
Block a user