Closed zimmah closed 3 years ago
Note that it also sometimes complains about 'Unexpected server response: 525'
@zimmah - It sounds like your client options is missing GUILD_VOICE_STATES
in the ws
intents.
im also seeing a few of these 'Unexpected server response: 525' errors about a week ago,
this does seem to have decreased now, maybe that one was related to some server-side change at discord.
_i do have the GUILD_VOICE_STATES
ws intent defined_
The weird thing is it that it often works fine, but then sometimes it suddenly doesn't. It's a little unreliable, that's why it seems like a bug.
I'm also dealing with this problem. A workaround for it is waiting 5 seconds after leaving and before joining another channel
Try to regenerate the token in the developer website
Hi there,
We're working on a new implementation of Discord's Voice API that has better playback quality and is more reliable than what we currently support in Discord.js v12 - check it out at https://github.com/discordjs/voice!
The new library solves many of the issues that users are facing, and as part of this, we're dropping built-in support for voice in our next major release. We have a PR (https://github.com/discordjs/discord.js/pull/5402) that adds native support for our new voice library - once this PR is merged, this issue will be closed.
You can still use our new voice library before that PR lands - just take a look at our music bot example to see how to get started upgrading your voice code. By using the boilerplate music player in the example, you can make it even easier to upgrade your code.
Note that the PR above only reduces some of the boilerplate code you'd otherwise have to write - you do not have to wait for the PR to be merged to start using the new voice library.
If you have any questions about this, feel free to:
#djs-new-voice
, specifically for this!) to ask general questions about the library, give feedback on the library, and get support with upgrading to it
Please describe the problem you are having in as much detail as possible: Background: I have a bot that should play a very short sound when a timer runs out. This bot runs in multiple servers and should serve multiple groups per server (each with their own textchannel and voice channel). When the timer for a group runs out, it should connect to the voice channel of that group, play a very short sound, and disconnect. Then it should be ready to repeat the process.
The problem is, quite often it would just connect, say the connection timed out, and crash. Sometimes crashing the whole bot in the process.
This is one error, but after that, sometimes it has another, much longer error, like this:
Include a reproducible code sample here, if possible:
Further details:
discord.js version: ^12.2.0
Node.js version: 14.2.0
Operating system: windows 10
Priority this issue should have – please be realistic and elaborate if possible: medium. It's pretty annoying because it crashes the bot, and even though the bot could work without sound, it does cut out a pretty important feature.
[ ] I have also tested the issue on latest master, commit hash: