Bot not outputting sound after joining the channel
The code seem to be called but not giving any output. I suspect there is an issue in the player to connection connection?
above is the connection code
12 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.I use v14.11.0
with 18.5 node version
seems like the audio pauses after started playing?
the issue is with the player to connection connection. The
connection.play()
method expects a MediaStream
object, but the createAudioResource()
method returns a URL object. To fix this, you can use the createMediaStream()
method to create a MediaStream
object from the URL
object.how can you use the
createMediaStream()
function
i am having a similar issueI'll test it out ty!
can I ask you where the createMediaStream is from?
im trynna find that out too @ me if you ever find it
sure you too 🙂
yo @! o _ o !
try running this command
npm install @discordjs/voice libsodium-wrappers
turns out I didn't have this library installed. and installing it made everything work
thats my code if you're interestedThank you for helping.
@luckybuda10 It works! Thank you very much!
yea no problem
I was so relived when i found that