djs 14.16.3 - voiceStateUpdate - what do "sessionId" changes mean?
Hello,
I have asked this in #djs-help-v14 before and someone replied, but never got an actual answer.
I've got pretty much all voicestateupdate events coded; join, leave, switch, mute, deaf etc etc etc with an else { } to console log if something else happens, and it did.
Comparing the old and newstate of that particular event, the only thing changed is the ''sessionId''.
It happens very infrequently/randomly, but i was wondering why that happens, because i can't find anything searching in here or googling it, does anyone have an idea?
Maybe bad internet connection and the voice user is reconnecting?
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPThat's the gateway connection session id. Discord asks to reconnect sometimes
you are referring to the bot reconnecting sometimes right? cuz that's not the case here..
ive been monitoring the specific sessionId changes for over a week now, its a little discord server, and it seems that with one particular user it keeps happening, while in comparison others dont have it (that much)
This particular user is most likely using the bot in VCs for a long time, so it hits the time Discord asks to reconnect to the Gateway
okay, thank you 🙂