Skip to content

Commit

Permalink
Set event loop in Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Revnoplex committed Oct 20, 2024
1 parent ead6e51 commit ca611c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def __init__(
self.loop: asyncio.AbstractEventLoop = (
asyncio.new_event_loop() if loop is None else loop
)
asyncio.set_event_loop(self.loop)
self._listeners: dict[str, list[tuple[asyncio.Future, Callable[..., bool]]]] = (
{}
)
Expand Down

0 comments on commit ca611c0

Please sign in to comment.