Open
Description
Summary
Delayed command sync is not cancelled on termination
Reproduction Steps
When shutting down the bot, the delayed_command_sync
task fails to be cancelled as it's in a pending state. Note that this occurs when no slash commands are registered.
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending name='disnake: delayed_command_sync' coro=<InteractionBotBase._delayed_command_sync() done, defined at disnake/ext/commands/interaction_bot_base.py:795> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x10af24160>()]>>
Minimal Reproducible Code
No response
Expected Results
There should not be unhandled errors when shutting down.
Actual Results
There are internal errors on shutdown.
Intents
N/A
System Information
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Todo