v5.3.13 - 1 minute connection bug is fixed!
Update @discordjs/voice to 0.15.0 or @latest
This commit is contained in:
parent
5dc2774e0f
commit
d7ce7acb22
2 changed files with 2 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "discord-player-play-dl",
|
||||
"version": "5.3.12",
|
||||
"version": "5.3.13",
|
||||
"description": "Complete framework to facilitate music commands using discord.js and play-dl",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -68,11 +68,7 @@ class StreamDispatcher extends EventEmitter<VoiceEvents> {
|
|||
*/
|
||||
this.paused = false;
|
||||
|
||||
this.voiceConnection.on("stateChange", async (oldState, newState) => {
|
||||
if (oldState.status === VoiceConnectionStatus.Ready && newState.status === VoiceConnectionStatus.Connecting) {
|
||||
connection.configureNetworking(); // Temp fix for 1 minute disconnect
|
||||
}
|
||||
|
||||
this.voiceConnection.on("stateChange", async (_, newState) => {
|
||||
if (newState.status === VoiceConnectionStatus.Disconnected) {
|
||||
if (newState.reason === VoiceConnectionDisconnectReason.WebSocketClose && newState.closeCode === 4014) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue