Browse Source

Rename some listeners to `wait_until_`.

Mainly login and ready listeners.
pull/60/head
Rapptz 9 years ago
parent
commit
f0d5d7a490
  1. 6
      discord/client.py

6
discord/client.py

@ -478,7 +478,7 @@ class Client:
# listeners/waiters # listeners/waiters
@asyncio.coroutine @asyncio.coroutine
def wait_for_ready(self): def wait_until_ready(self):
"""|coro| """|coro|
This coroutine waits until the client is all ready. This could be considered 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() yield from self._is_ready.wait()
@asyncio.coroutine @asyncio.coroutine
def wait_for_login(self): def wait_until_login(self):
"""|coro| """|coro|
This coroutine waits until the client is logged on successfully. This This coroutine waits until the client is logged on successfully. This
is different from waiting until the client's state is all ready. For 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() yield from self._is_logged_in.wait()

Loading…
Cancel
Save