Error: WebSocket was closed before the connection was established
I have Discord Music bot and it's been running for almost a year. Since yesterday, I got an issue that says: Unable to play a music: Error: WebSocket was closed before the connection was established Here is my code: try { var connection = await voiceChannel.join(); if(guild.me.hasPermission("DEAFEN_MEMBERS")) guild.me.voice.setDeaf(true); queueContruct.connection = connection; play(message.guild, queueContruct.songs[0], message); } catch (err) { queue.delete(message.guild.id); errorMessage(message, "1058"); console.error("Unable to play a music: "); return console.error(err); } play function:
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.