Skip to content

Commit ca611c0

Browse files
committed
Set event loop in Client
1 parent ead6e51 commit ca611c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def __init__(
229229
self.loop: asyncio.AbstractEventLoop = (
230230
asyncio.new_event_loop() if loop is None else loop
231231
)
232+
asyncio.set_event_loop(self.loop)
232233
self._listeners: dict[str, list[tuple[asyncio.Future, Callable[..., bool]]]] = (
233234
{}
234235
)

0 commit comments

Comments
 (0)