mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Clarify that Client.close is a coroutine.
This commit is contained in:
@@ -544,9 +544,9 @@ class Client:
|
|||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def close(self):
|
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:
|
if self.is_closed:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user