Raise an exception when wait_until_ready is called without a loop

This commit is contained in:
Rapptz 2022-06-11 20:29:30 -04:00
parent 3cb90199c9
commit d19faa5f32

View File

@ -1012,6 +1012,11 @@ class Client:
"""
if self._ready is not MISSING:
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(
self,