Since today, my bot doesn't play audio through the voice channel
Has anything changed in the API?
18 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- 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!What version of
@discordjs/voice
are you using?
Are you receiving any errors?
Is your bot having issues anywhere else?
Discord hasn't made any announcements that there's been a change in the API, so without more information, I have no idea what your issue isErrors such as
ECONNRESET
, ConnectTimeoutError
, SocketError: other side closed
indicate a network issue
* Free or shared hosting providers often come with significant limitations
* Another indication of these issues are 'Unknown Interaction' errors.thats not how you check versions
thats your npm version

Ya. Your voice package is deprecated. You need 0.18 or greater for it to work
Nevermind ignore me. I speak lies
Just update your packages. Because as it says here https://discord.com/channels/222078108977594368/1163868664152465438
You need
0.18.0
or greaterI still get the error after doing:
npm uninstall @discordjs/voice
npm i @discordjs/voice
looks like a generic network issue
Have you tried running it locally instead of on your host to see if it fixes your issue?
Hmm, would I be able to run any tests to figure this out?
I'll try that and see
same on my local machine, that shouldn't have any network restrictions
here's the 11 lines of code, maybe something changed
https://github.com/MaxPuig/guacamayo/blob/main/utils/voice.js#L120-L131
GitHub
guacamayo/utils/voice.js at main · MaxPuig/guacamayo
Guacamayo, a Discord bot that announces who has entered a voice channel. - MaxPuig/guacamayo
I narrowed it down with this:
Okay, turns out it was the location of the server of the voice channel...
@mecs did you ever resolve this issue? Furthermore, when you mean that it doesn't play audio, does it ALWAYS not play audio? Or is the behavior on and off?
@dzlandis by changing the server location of the voice channel, the issue got solved
Cog ⚙️ wheel > on the voice channel. So nothing to do with the bot
What did you change the location to in your case?
I'm having a similar issue on and off but changing the voice location didn't resolve when I tried that previously.
I selected automatic