Open qixils opened 6 years ago
That's what it already does? No?
No, that is not what it already does. It just says, "Already connected, sucks to be you." Okay, it's a little more polite.
I'm pretty sure I patched that.
For context: https://github.com/HTSTEM/MusicBot/blob/acf88a8b266ffc6690ae2aad186cb476aaace685/musicbot/cogs/music.py#L849 it locates any voice channel it's connected to and force-disconnects.
Ensured fixed with https://github.com/HTSTEM/MusicBot/commit/145621957d7f68577c850590f41c8a3f22aa7a16 Please reopen if continuing.
Right, so, https://github.com/HTSTEM/MusicBot/blob/acf88a8b266ffc6690ae2aad186cb476aaace685/musicbot/cogs/music.py#L852 ensures that if it has a reference to the voice channel anywhere, it disconnects. The problem would appear to be that for some reason it no longer has a ref.
basically turn !reconnect's current functionality into what you would get from doing !disconnect, followed by !reconnect