D3V1L0M3N
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 12/10/2023 in #djs-voice
Discrepancy between .playable and .subscribers
I think this might be relevant to the issues where bot leaves Voice Channels randomly out of the blue for no reason. The latest discordjs/voice version seems to have drastically reduced the amount of times this happens but I just noticed in a few of my servers, where the bot should have been connected/playing, it wasnt - but those channels were still present in
.subscribers
4 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
oo that's good news. Strangely I also noticed latest version somewhat fixed it in prod environment but voice connections were still randomly stopping here and there, albeit a lot less frequently. Running locally, however, completely unstable.
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
What node (
node --version
) and npm (npm --version
) version you on? Because that's super gunky behaviour.63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
what the...
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
If it still slaps in the old version then your node install is smokin' something 👀 At that point, could try manually editing the
package.json
file to 0.15.0, then run npm install
and see if it finds it then63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
😮 Try
npm cache clean --force
to clear cache
Then npm cache verify
to make sure everything checks out no errors.
Then npm install discordjs/voice@latest
to install the latest version63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Whoops. Rip the person named latest 😳
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Even still though, the issues are present in 0.15
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Try adding @ileast onto the dependency. Sometimes npm can have some wacky caching behaviour
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Here's the full log:
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Oop, nvm, I've got a failure. Here is the part of the log where audio stopped playing and did not resume:
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Should I close this post? Pretty new to this Discord feature. Is it possible to re-open it later, if required?
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
👍 yup, fair enough. I'll keep an eye on it and see how it goes. Really was hoping to see some juicy message/info on exactly why it was stopping and now I feel kinda robbed 😔 but at least it is working for now..
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Ok, this is actually unironically working fine now after running the bot with debug enabled. Even subsequent runs without debug enabled are still working fine. I dont know what dark magic is going on behind the scenes but yea.... before I used the debug, it'd consistently stop playing, everytime. But now I can't seem to get it to fail at all. Very weird.
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
🧐 now that debug is enabled it ain't gonna do it :feelsbanhammer:
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
oo, that's interesting. Would not have picked that up from the docs. Could be worth mentioning it in the
debug
event listeners's section63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Here's how I'm creating the voice connection:
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
Yea @qjuh, the debug event isn't being emitted, period
63 replies
DIAdiscord.js - Imagine an app
•Created by D3V1L0M3N on 3/12/2023 in #djs-voice
Audio stops playing
As per my first/original message in this thread,
debug
and stateChange
events weren't emitting anything in these situations. Can give it another go now (since I'm now on 0.15) but I'm not sure how much luck it'll have.63 replies