Voice not playing

I've created this code and i'm sure the audioStream is correct but it's still not playing audio's
No description
10 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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
!
!OP5mo ago
d.js docs
d.js docs5mo ago
To 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 one for each class if applicable
<AudioPlayer | VoiceConnection>
.on('debug', console.log)
.on('error', console.error)
// Add one for each class if applicable
<AudioPlayer | VoiceConnection>
.on('debug', console.log)
.on('error', console.error)
- Add an error listener to the stream you are passing to the resource:
<Stream>.on('error', console.error)
<Stream>.on('error', console.error)
Note: The <> represents classes that need to be adapted to their respective name in your code
:guide: Getting Started: Introduction - Debugging Dependencies read more
duck
duck5mo ago
iirc you were previously looking at the required deps for /voice for a different issue, so hopefully that should already be in order, but please still generate a report just to make absolutely sure
!
!OP5mo ago
Okay It was working on a different project and then i copied the code to another project and it stopped working
!
!OP5mo ago
No description
!
!OP5mo ago
I got this from the working project
No description
!
!OP5mo ago
I have no idea what could be the issue
duck
duck5mo ago
do you have the GuildVoiceStates intent?
!
!OP5mo ago
Naah you must be kidding oh my god all of these hours just for this stupid mistake i didn't even know that it needs intent thanks @duck
Want results from more Discord servers?
Add your server