aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-05 05:48:09 -0500
committerRapptz <[email protected]>2015-12-05 05:48:09 -0500
commit63f4a769c672fb05d4ab75e69ac8d77262b58f6c (patch)
tree6b0ad09358669fcc55b33979af9cc5d0735e392a
parentAdd role management functions. (diff)
downloaddiscord.py-63f4a769c672fb05d4ab75e69ac8d77262b58f6c.tar.xz
discord.py-63f4a769c672fb05d4ab75e69ac8d77262b58f6c.zip
Documentation fixes in Client.connect.
-rw-r--r--discord/client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 80d8dd13..5e0c4b54 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -388,8 +388,10 @@ class Client:
you should run it in an executor or schedule the coroutine to
be executed later using ``loop.create_task``.
- This function throws :exc:`ClientException` if called before
- logging in via :meth:`login`.
+ Raises
+ -------
+ ClientException
+ If this is called before :meth:`login` was invoked successfully.
"""
yield from self._make_websocket()