DEV Community

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

Collapse
 
boldsen profile image
Boldsen

any youtube link, when you do !play it gives this error. But not if you just do !play

Thread Thread
 
galnir profile image
Nir • Edited

This error is on your end, it's a youtube API error. I'll try to figure out why you're getting it

Did you modify any code? Also check if your dependencies are the same version as the repo's

Thread Thread
 
boldsen profile image
Boldsen

Didn't modify anything no, what do you mean with repo?

Thread Thread
 
galnir profile image
Nir

Repository. Compare your package.json with the package.json on my repo: github.com/galnir/Master-Bot

Thread Thread
 
boldsen profile image
Boldsen

my ytdl-core is 0.29.7 instead of 0.29.5 but youtube api and discord js + commando are the same

Thread Thread
 
boldsen profile image
Boldsen

Found the issue, was missing a / or \ somewhere in the query .split