Bot does not play any music, with no error message at all
it just shows application did not respond on discord, but no error message in terminal
audio source is an
audio
directory that has mp3 files4 Replies
- 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!Not sure if it's gonna help but try subscribing to the player first then play
That didn't work, but also there is another issue that is bugging me
when I start my project
npm run ..
(basically running the bot) and I am not in a vc at that time, when I join the vc and use the command, it says you need to be in a vc.
If I am already in the vc before running npm run ..
this does not happen
suppose the string has the valid filename, I have fixed my path to cause that is how my project is structured. But why can't I debug anything, why was there no error even when createaudioresource gets the wrong pathTo debug your voice connection and player:
- Use
debug: true
when creating your VoiceConnection
and AudioPlayer
- Add an event listener to the <VoiceConnection> and the <AudioPlayer>:
- Add an error
listener to the stream you are passing to the resource:
Note: The <>
represents classes that need to be adapted to their respective name in your code