question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disconnect on VoiceState change

See original GitHub issue

Description 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:

  1. Play something
  2. 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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Arasfoncommented, Nov 2, 2020

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!

0reactions
angelobreuercommented, Nov 2, 2020

Perfect! Thank you for your time. I will deploy a patch then (v1.6).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found