-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
voice connection says it timed out, despite bot visibly joining in the voice channel #4302
Comments
Note that it also sometimes complains about |
@zimmah - It sounds like your client options is missing |
im also seeing a few of these 'Unexpected server response: 525' errors about a week ago, |
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 (#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:
|
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:
The text was updated successfully, but these errors were encountered: