Disconnect on VoiceState change
See original GitHub issueDescription When you change bot’s VoiceState (e.g. server mute, move bot to another voice channel) it simply disconnects without any error (see additional context), i can’t find anything in my code that calls Disconnect, so i think there’s something with the library. I tried looking into sources, but i didn’t find anything that can help with my issue.
To Reproduce Steps to reproduce the behavior:
- Play something
- Mute bot on the server
Expected behavior Bot should not be disconnected from voice channel
Versions Lavalink4NET 1.5.5 Discord.Net v2.3.0-dev-20201028.4 (no difference in behavior at stable, but dev handles reconnections better)
Additional context In Lavalink4NET logs:
[Lavalink4NET.LavalinkNode]: Voice WebSocket was closed for player: 66311...13
Close Code: NormalClosure (1000, Reason: , By Remote: No
In Lavalink server logs i see
{"op":"destroy", "guildId":"..."}
and nothing abnormal except the line above.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How do I disconnect a user from a voice channel in discord ...
I use this on my bot and it works fine. ... Not sure if this is still relevant but since the update you...
Read more >Disconnect userID from vc : r/Discord_Bots
The voiceState#disconnect() method was called voiceState#kick() in v12 therefore you'd have to make the suitable changes if on v12.
Read more >Voice Connections
Disconnected - the state a voice connection enters when the connection to a voice channel has been severed. This can occur even if...
Read more >API Reference
Changed in version 1.3: Allow disabling the message cache and change the default size to 1000 . proxy (Optional[ str ]) – Proxy...
Read more >100 Voice Channel Activity Tracking System | discord.js tutorials
Documentation: https://reconlx.github.io/djs-voice Dont know what this is? Watch the first video to set up everything: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was writing about 3.3.1.4 not working because of fixes implemented in later versions, but did not have time to complete it, as you sent new patch. All is working correctly now! Thank you very much!
Perfect! Thank you for your time. I will deploy a patch then (v1.6).