I can't get the audio to start

I have the bot that connects to the voice channel but does not start the audio, I leave the complete code and some logs that the bot gives me.
9 Replies
d.js toolkit
d.js toolkit2mo ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - 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!
Micr0n
Micr0nOP2mo ago
This is index.js
Micr0n
Micr0nOP2mo ago
"dependencies": { "@discordjs/opus": "^0.9.0", "@discordjs/voice": "^0.17.0", "discord.js": "^14.16.3", "ffmpeg-static": "^5.2.0", "fs": "^0.0.1-security", "opusscript": "^0.0.8", "prism-media": "^1.3.5", "ytdl-core": "^4.11.5", "ytdl-core-discord": "^1.3.1" } }
treble/luna
treble/luna2mo ago
We do not support TOS violations Which ytdl is
Micr0n
Micr0nOP2mo ago
Can you be more specific?
treble/luna
treble/luna2mo ago
ytdl, and anything using youtube as source is against yt's TOS
Micr0n
Micr0nOP2mo ago
I don't use ytdl, I put a "test.mp3" file
Micr0n
Micr0nOP2mo ago
No description
Micr0n
Micr0nOP2mo ago
@here I only installed the dependency but I didn't use it, in fact in the code "Index.js" is not declared because I don't use it.
Want results from more Discord servers?
Add your server