#discord music bot leaves immediately after joining vc

20 messages · Page 1 of 1 (latest)

safe breach
#

I'm having trouble with my discord music bot. It's using discord js v14 and node v18. It's currently hosted on Heroku using their node.js buildpack. I have libopus and FFmpeg buildpack installed too. The bot works fine in all ways except that when it joins a vc, it immediately leaves. I saw somewhere it might be an API issue? It doesn't give me an error when it leaves the vc, and it does correctly find the links to music. I've logged throughout the /play command and found that immediately after it plays a song, the queue is empty and queue.node.isPlay == false.

last relic
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

safe breach
#

For list:

#

Node version is 16.19.0? It says v18 when it uploads to heroku-

#

Ok so on GitHub it says 16.19.0 but on Google cloud it says 18.21.1

#

I'm checking what version the server is running

#

Server is running 18.15.0

#

I don't know if that affects anything, but the server is saying "no matching version found" for node 18.21.1

green kraken
safe breach
safe breach
#

What's the exact command to find that?

#

I tried npm version @discordjs/voice and it said invalid version

green kraken
#

same as you did before?

#

why would it change?

safe breach
#

Right right sorry

#

Is deduped supposed to be there?

green kraken
green kraken