SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
688 stars 144 forks source link

Voice : Could not connect to wss://frankfurt5081.discord.media #401

Closed MyoldhamiYeari closed 9 months ago

MyoldhamiYeari commented 9 months ago

Can you fix the voice connection issue?

More details about the error:

2023-11-08 20:18:59 | [ERROR]   | Voice : Could not connect to wss://frankfurt5081.discord.media (C:/Users/Myold/Desktop/lua/deps/coro-websocket.lua:170: Invalid request: <html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
)
MyoldhamiYeari commented 9 months ago

Fixed, You just need to make a channel / change the location of the vc.

Ta-noshii commented 9 months ago

To fix this apply this commit to your websocket-codec.lua https://github.com/luvit/lit/commit/8313638b279fdb4d6efd5e8c94544456b5077d71