TypeError: Cannot create property 'audioPlayer' on string 'study'
Hello so I noticed something my bot crashes after a while because of the module. I'd like to know how to prevent it from crashing.
`
5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
yes i use AudioResource
le audioStream
how can I understand you if I can't understand your sentences?
this ?
I use db.radio as a string in my db. to explain quickly when the user does /station he clicks on a radio in the select menu I record the value in db as a String and in the ready when the bot reconnects in voice it will look for the value and take the link from the map.
how do I do it then
because I pass him my AudioRessource it's in the audio resource that I pass the db.Radio
If you don't explain how I should do it, how do you want me to understand how to do it?

except that I give it a parameter, not a String
but I don't see where this famous character string is, because the AudioRessource I pass to it is audioStream
except that I've shown you my audioRessource and the audioPlayer I'm passing him my audioRessource
I had modified after yesterday, but today the error persists.
i have replace db.radio with ressource
-
const connection = joinVoiceChannel(...)
- const { player } = connection.subscribe(createAudioPlayer(...))
- player.play(createAudioResource(...))
to me, it looks like he doesnt know where to pass what