Repository navigation
v1.0.2
Fixes a crash that took the whole bot down a few seconds after any music playback started.
MusicPlayerView._refresh reused the name of discord.ui.View._refresh(components), which discord.py calls from parse_message_update for every tracked view. The player card is edited every eight seconds by the progress loop, so the first edit raised
TypeError: MusicPlayerView._refresh() missing 1 required positional argument: 'message'
inside the gateway poll task and killed the process.
That also explains the voice symptom it looked like: Voice connection complete followed six seconds later by the handshake terminating and ffmpeg being killed with -9. Voice was fine — the bot died mid-track and the connection went down with it.
The helper is now _ack_and_refresh, and the Stop button callback is stop_playback for the same reason — View.stop() is real API. Clicks route on custom_id, which did not change, so player cards posted before this release still work.
A test now asserts the view redefines no inherited name other than interaction_check.
ghcr.io/thenotoriousjeremy/danbot:1.0.2