You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Connecting to certain voice servers in specific regions causes the connection to crash every minute.
It seems to be a Discord issue at the moment.
A workaround is to remove keepAlive timer/interval..
Add the following code to node_modules/discord-player/dist/VoiceInterface/VoiceUtils.js
// line 43conn.on('stateChange',(old_state,new_state)=>{constoldNetworking=Reflect.get(old_state,'networking');constnewNetworking=Reflect.get(new_state,'networking');constnetworkStateChangeHandler=(oldNetworkState,newNetworkState)=>{constnewUdp=Reflect.get(newNetworkState,'udp');clearInterval(newUdp?.keepAliveInterval);}oldNetworking?.off('stateChange',networkStateChangeHandler);newNetworking?.on('stateChange',networkStateChangeHandler);});
Screenshots
Version Information:
Node.js: 18.14.2
Discord.js: 14.7.1
Music-Disc: 1.2.6
Dependency modules
discord-player: 5.3.2
ffmpeg-static: 5.1.0
opusscript: 0.0.8
The text was updated successfully, but these errors were encountered:
Describe the bug
Connecting to certain voice servers in specific regions causes the connection to crash every minute.
It seems to be a Discord issue at the moment.
discordjs/discord.js#9185
A workaround is to remove keepAlive timer/interval..
Add the following code to
node_modules/discord-player/dist/VoiceInterface/VoiceUtils.js
Screenshots
![image](https://user-images.githubusercontent.com/52697423/222714850-07fabc36-553a-48eb-91d7-6c06c121adbe.png)
Version Information:
The text was updated successfully, but these errors were encountered: