You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an issue where whenever I run voiceconnection:close() or voicechannel:leave() I receive an invalid opcode warning and a subsequent disconnect/reconnect from discord. I'm running version 2.8.3.
Here's the selection of code that runs the above output:
local voiceconnection = SpeakChannel:join()
local connected = true
local function abort(member,channel)
if connected and channel == SpeakChannel and not member.user.bot then
connected = false
print("Player left")
voiceconnection:close()
end
end
client:on("voiceChannelLeave",abort)
local songnum = 1
for i = #songs, 2, -1 do
local j = math.random(i)
songs[i], songs[j] = songs[j], songs[i]
end
while connected do
print("Song loop start")
if songs[songnum] == nil then
songnum = 1
end
local songinfo = songs[songnum]
print("Song playing")
local s, e = voiceconnection:playFFmpeg("music/"..songinfo["filename"]..".mp3")
print(e)
print("Song loop end")
songnum = songnum + 1
end
The text was updated successfully, but these errors were encountered:
Sorry for the lack of reply. I honestly have no idea what this issue can be. The voice gateway connection should have nothing to do with the main connection. Is this still an issue for you?
I'm getting an issue where whenever I run voiceconnection:close() or voicechannel:leave() I receive an invalid opcode warning and a subsequent disconnect/reconnect from discord. I'm running version 2.8.3.
Here's the selection of code that runs the above output:
The text was updated successfully, but these errors were encountered: