#Voice Connection Issue

27 messages · Page 1 of 1 (latest)

elder nimbus
#

So, the bot joins the discord voice channel, then displays this after 15 seconds and then doesn't do anything.
Node Version: V10.24.0
DiscordJS Version: 12.5.3

I can post the index.js in here if needed

torpid anvilBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
unborn swift
#

looks like a firewall/proxy issue. the voice connection's websocket doesn't seem to be able to reach discord in time

elder nimbus
#

It does connect to the voice channel, but doesn't do anything then comes up with that error, is there a way to unblock it?

unborn swift
#

Does it connect? or does it only join the channel?

#

those are two separate things

elder nimbus
#

Umm

#

It joins the discord voice channel

#

But then like freezes until it comes up with that error

#

So, maybe doesn't connect properly

unborn swift
#

yeah, then the VoiceWebSocket doesn't connect. the joining is done over the regular bot gateway WebSocket

elder nimbus
#

What would be the fix?

vital haven
#

DiscordJS Version: 12.5.3
I'm willing to believe this is due to one of the many things fixed/implemented in the years since v12
please update

unborn swift
#

And the node version is alsonotLikeCat

#

Didn’t even look at the versions🤦‍♂️

elder nimbus
#

Updated them both to the latest and got a new one

#

So I think I'm missing a dependency or something

unborn swift
#

Did you update djs to the dev version instead of stable v14?

elder nimbus
#

yeah, was it meant to be stable 14?

unborn swift
#

depends. Do you want a stable library and support for issues? or the latest features with possibly broken dependencies you'd need to overwrite to use dev versions too etc.?

elder nimbus
#

Yeh that's true, I can't seem to get djs 14 is there a certain way? cause it keeps installing 10.5.2

#

Managed to push it to 14.12.1 bit gotta fix the ClientMissingIntents

unborn swift
unborn swift
elder nimbus
#

I'm guessing you mean this, right?

client.on('message', async message => {
    if (!message.content.startsWith(prefix) || message.author.bot) return;
    const args = message.content.slice(prefix.length).split(' ');
    const command = args.shift().toLowerCase();
});
unborn swift
#

probably would be easier to code that from scratch instead of trying to get a 2y old code from someone else up to date