DEV Community

Discussion on: Writing a music command for your discord.js bot (Updated March 2020)

Collapse
 
thiccswwss profile image
thiccswwss • Edited

Hey, everything seems to be working, but as soon as the bot joins the vc, it automatically leaves

Collapse
 
galnir profile image
Nir

Yeah there's an issue now with ytdl-core/YouTube

Collapse
 
thiccswwss profile image
thiccswwss

Is there any way to get around the issue, or is it like that until youtube fixes it?

Thread Thread
 
galnir profile image
Nir

Try removing line 252 in play.js
If that solves it tell me, not near a pc atm

Thread Thread
 
thiccswwss profile image
thiccswwss

I deleted the line, there seems to still be an issue, is this the right bit of code?
quality: 'highestaudio',

Thread Thread
 
galnir profile image
Nir

Yeah so there's an issue with ytdl, I just saw more ppl reporting it

Collapse
 
galnir profile image
Nir • Edited

Update
Hey, updating ytdl-core to the latest version solves that error.

npm install ytdl-core@latest