Skip to content

error: RuntimeError: Task <Task pending name='Task-46'...> got Future <Future pending> attached to a different loop. #1147

Answered by elenakrittik
Xalwer asked this question in Q&A
Discussion options

You must be logged in to vote

With most errors like this when using disnake, my best guess would be that it's actually a problem with how your bot starts. Usually it's the result of using asyncio functions on a different loop that the one used by disnake, most often (in my experience) by doing some sort of async initialisation using loop.create_task and then forgetting to set up this loop as the running one or forgetting to explicitly pass it to Bot.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xalwer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants