Skip to content
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

Connection issue in voice #394

Open
ProGrovv opened this issue Jul 9, 2023 · 2 comments
Open

Connection issue in voice #394

ProGrovv opened this issue Jul 9, 2023 · 2 comments

Comments

@ProGrovv
Copy link

ProGrovv commented Jul 9, 2023

I just set connection to channel:join() and play audio file by FFmpeg, but connection is nil, I don't know where is a problem, because in discord the bot connects to the channel

I only receive warnings:
Unhandled WebSocket payload OP 18
Unhandled WebSocket payload OP 20

Thank you for help in advance!

@MeteorTheLizard
Copy link

Unhandled WebSocket payload OP 18
Unhandled WebSocket payload OP 20

These errors happen all the time, these payloads are undocumented on discords end, and I'm going to assume that they're used to receive audio data which you're not supposed to do anything with.

https://discord.com/developers/docs/topics/opcodes-and-status-codes

@Bilal2453
Copy link
Contributor

Bilal2453 commented Jul 9, 2023

This problem has nothing to do with the unhandled payloads indeed. It is due to the breaking changes Discord has introduced. It was solved in the latest Discordia commits, the update is not yet pushed to Lit's upstream. Update your Discordia installation from this repo (delete /deps/discordia then do git clone https://github.com/SinisterRectus/Discordia ./deps/discordia).

Also, if you want to know why is something erroring (returning nil), check the second return, Discordia methods return nil, string on HTTP errors, the string is used to describe the issue.

You would have had more luck asking in our Discord server over here by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants