mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-15 19:46:34 +00:00
Raise an exception when wait_until_ready is called without a loop
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user