From 63f4a769c672fb05d4ab75e69ac8d77262b58f6c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 5 Dec 2015 05:48:09 -0500 Subject: [PATCH] Documentation fixes in Client.connect. --- discord/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/discord/client.py b/discord/client.py index 80d8dd13e..5e0c4b541 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()