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
d.js toolkit
d.js toolkit•4mo 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! - ✅ Marked as resolved by staff
Kyllingz
Kyllingz•4mo ago
npm list discord.js returns "[email protected]"
treble/luna
treble/luna•4mo ago
We do not support TOS violations
Kyllingz
Kyllingz•4mo ago
Ah 😦 Is that TOS violation on youtube side?
treble/luna
treble/luna•4mo ago
yes thus on discord too
Kyllingz
Kyllingz•4mo ago
Aha didn't know it was a TOS violation, thanks!
Sanguor
Sanguor•4mo ago
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
treble/luna
treble/luna•4mo ago
Those are also against TOS
Want results from more Discord servers?
Add your server