Play Sound from URL

Hi, ive created a command to have the bot on a voice channel, it works but i want to play a sound from an url but i dont realy know how to do this, i found some infos on the web about playing an audio from a file but not from a link
3 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
Deleted
DeletedOP13mo ago
Ive already adked and it doesnt work
requizm
requizm12mo ago
Use yt-dlp(might need ffmpeg to full functionality) to download buffer from url. Then create AudioResource with buffer
Want results from more Discord servers?
Add your server