createAudioResource has stopped working for me, only getting Status code 403
Hey!
I've had my bot running for a couple of years now without many issues until now. Using createAudioResource yields the 403 error. I've tried with both ytdl-core and ytdl-core-discord.
These are my package dependencies if that matters:
"dependencies": {
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.17.0",
"discord.js": "^14.8.0",
"ffmpeg": "^0.0.4",
"ffmpeg-static": "^5.1.0",
"fluent-ffmpeg": "^2.1.2",
"libsodium-wrappers": "^0.7.9",
"yt-search": "^2.10.3",
"ytdl-core": "^4.11.5",
"ytdl-core-discord": "^1.3.1"
}
Any idea why it doesn't work?
9 Replies
- 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!
- ✅
Marked as resolved by staffnpm list discord.js returns "[email protected]"
We do not support TOS violations
Ah 😦 Is that TOS violation on youtube side?
yes
thus on discord too
Aha didn't know it was a TOS violation, thanks!
Hello!
What is considered as a TOS violation?
Trying to play music from youtube specifically? Or using ytdl-core maybe?
You should use the "@distube/ytdl-core" or rewrite code.
As a temporary measure.
Please check https://github.com/fent/node-ytdl-core/issues/1295
and https://github.com/fent/node-ytdl-core/issues/1301
Those are also against TOS