Cant play the same audio resource again
Hello i'm trying to make a bot that plays audio when someone enters the same voice with the bot here is the code
https://pastebin.com/M45Ukbu7
it plays it onve when i enter but does not when i leave and rejoin instead i get this error
Pastebin
const { Client, GatewayIntentBits, ChannelType, ActivityType } = re...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 Reply
- 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!
- ✅
Marked as resolved by OP