force disconnect screws with music commands
Describe the bug
When in a voice chat and listening to music, if someone decides to force disconnect the bot (not with the $stop command), music commands become unusable
Steps to reproduce the behavior:
- Enter a voice chat
$playand play a song (optional: add more songs and loop the queue)
- Force disconnect the bot from the voice channel (right click > disconnect)
With the bot no longer being in the voice chat, the following should not be possible:
- adding to the queue
- now playing
- etc The following should be possible:
- adding to a new queue, making the bot rejoin
$stopto remove the queue on command, in case there is a bug
If applicable, add screenshots to help explain your problem.
As seen in the image, using any command except
$play is not possible (
$chooseplay works too, from testing).
Letting the queue "time out" will "fix" the issue and allow users to let the bot join the voice channel again.