error: RuntimeError: Task <Task pending name='Task-46'...> got Future <Future pending> attached to a different loop. #1147
-
Here is the full error code:
And here is the open source code. Thank you very much for your time. |
Beta Was this translation helpful? Give feedback.
Answered by
elenakrittik
Jan 8, 2024
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Xalwer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 usingloop.create_task
and then forgetting to set up this loop as the running one or forgetting to explicitly pass it toBot
.