Command preparation and sync fails when bot is started on an unmanaged event loop #1138
Open
3 tasks done
Labels
unconfirmed bug
Something might not be working
Summary
When passing a event loop to the bot constructor, any command preparation will fail.
Reproduction Steps
Minimal Reproducible Code
Expected Results
Command preparation and sync to complete successfully.
Actual Results
Command preparations and sync does not run or finish as the tasks are bound to the wrong event loop.
Intents
None
System Information
Checklist
Additional Context
My personal traceback in question:
The Bad News: Slash commands don't sync, which is unfortunate, but…
The Good News: The bot doesn't crash! Which is good! And if the commands were already created and synced by another working instance, then those commands will still dispatch properly if someone calls them!
NOTE: Using
DISCORD_CLIENT.run(...)
does not error, but I need to be able to manage my own event loop for this bot, and since it's a probable parameter you can pass it, I'd expect that this would be supported as well?The text was updated successfully, but these errors were encountered: