|
@ -1012,6 +1012,11 @@ class Client: |
|
|
""" |
|
|
""" |
|
|
if self._ready is not MISSING: |
|
|
if self._ready is not MISSING: |
|
|
await self._ready.wait() |
|
|
await self._ready.wait() |
|
|
|
|
|
else: |
|
|
|
|
|
raise RuntimeError( |
|
|
|
|
|
'Client has not been properly initialised. ' |
|
|
|
|
|
'Please use the login method or asynchronous context manager before calling this method' |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
def wait_for( |
|
|
def wait_for( |
|
|
self, |
|
|
self, |
|
|