When creating a discord.Client or discord.ext.commands.Bot, you have an option to pass an event loop for the Client to use.
loop (Optional[event loop].) – The event loop to use for asynchronous operations. Defaults to None, in which case the default event loop is used via asyncio.get_event_loop().
A lot of calls in the library do not respect this choice, and a default event loop is used instead. You can find a lot of examples just by searching for asyncio.sleep( in the library code, where the loop needs to be passed as an argument.
This option does not make sense if broken, and thus
it should be either removed, or
it should be fixed so that the library only uses the loop provided, or
it should be clarified what operations is the given loop used for.
The text was updated successfully, but these errors were encountered: