Bot joins audio channel, turns green, still no sound
There is no error thrown, I don't see anything wrong. Mostly copied the guide.
12 Replies
looks like you're missing one of the opus libraries
After this, you'll be able to play Ogg and WebM Opus files without any other dependencies. If you want to play audio from other sources, or want to improve performance, consider installing some of the extra dependencies listed below.
installed @discordjs/opus, do i have to enable it in the code?
nope
still seems to be doing the same thing
alright then could you listen to the
stateChange
event on the player and log any state changes?
logs:
anything else after that?
sometimes does more:
it just stays like that, sometimes it changes to idle after a while
autopaused comes from not having a connection subscribed, which imo means it's safer to subscribe before playing audio
but in this case this shouldn't be the issue
it genuinely believes it's playing audio, so it's likely the issue comes from resource itself
i tried putting in an invalid song path, and it switches to idle, which leads me to believe i had the path right
oh crap facepalm time
discord switched my audio output to my microphone (??), so it was working the whole time i just couldn't hear. sorry for the wasted effort, but thank you very much for your help
no worries 👍