mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fully initialise asyncio state in __aenter__
This commit is contained in:
parent
575eacb1bf
commit
7c0a9e901d
@ -232,7 +232,7 @@ class Client:
|
||||
_log.warning("PyNaCl is not installed, voice will NOT be supported")
|
||||
|
||||
async def __aenter__(self) -> Self:
|
||||
self.loop = asyncio.get_running_loop()
|
||||
await self._async_setup_hook()
|
||||
return self
|
||||
|
||||
async def __aexit__(
|
||||
|
Loading…
x
Reference in New Issue
Block a user