aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-19 20:31:52 -0500
committerRapptz <[email protected]>2015-12-19 20:31:52 -0500
commitf0d5d7a490e6b94eadcc4cb5622eedfe90c97bf5 (patch)
treeee89d3646e93111eb4317949664b47ca5b582005
parentUpdated examples to use new properties. (diff)
downloaddiscord.py-f0d5d7a490e6b94eadcc4cb5622eedfe90c97bf5.tar.xz
discord.py-f0d5d7a490e6b94eadcc4cb5622eedfe90c97bf5.zip
Rename some listeners to `wait_until_`.
Mainly login and ready listeners.
-rw-r--r--discord/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py
index 707e07b6..33491165 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -478,7 +478,7 @@ class Client:
# listeners/waiters
@asyncio.coroutine
- def wait_for_ready(self):
+ def wait_until_ready(self):
"""|coro|
This coroutine waits until the client is all ready. This could be considered
@@ -488,12 +488,12 @@ class Client:
yield from self._is_ready.wait()
@asyncio.coroutine
- def wait_for_login(self):
+ def wait_until_login(self):
"""|coro|
This coroutine waits until the client is logged on successfully. This
is different from waiting until the client's state is all ready. For
- that check :func:`discord.on_ready` and :meth:`wait_for_ready`.
+ that check :func:`discord.on_ready` and :meth:`wait_until_ready`.
"""
yield from self._is_logged_in.wait()