Playing a single audio
How can I write a code for the bot to join a vc and play just one mp3 and then leave? How can I do that?
2 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!check out "basic" in the voice-examples repo linked above, it joins the vc when you type -join and then plays an mp3
beware it's using djs 13 but the voice code hasnt changed