SinisterRectus / Discordia

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

VoiceManager may create connections with a state that does not have an endpoint #150

Open Mehgugs opened 6 years ago

Mehgugs commented 6 years ago

Causes this error:

Uncaught Error: /root/luvit/tourmaline/deps/coro-channel.lua:62: ...it/tourmaline/deps/discordia/libs/voice/VoiceManager.lua:28: attempt to call method 'gsub' (a nil value)

relevent method

discord sends a voice server update without the endpoint, then later sends one with it so you're forced to check for the endpoint and wait if it's not there.

SinisterRectus commented 6 years ago

Will address after the weekend, hopefully.

Dimentio commented 5 years ago

I"m also having this issue.