Tomato6966 / erela.js

An up to date Lavalink Wrapper, which makes it easy to use Lavalink within your Discord Bot!
Apache License 2.0
50 stars 25 forks source link

Players disappearing from voice channel #1

Closed pasindu20 closed 2 years ago

pasindu20 commented 2 years ago

Players disappearing from voice channel after 12 + hours player connect to channel when go that channel and play songs it says no player detected but i destory the players using player.destroy() it will destory after usering commands it worked but its so annoying becase if user use command that guilch time it will not work at all

but in https://github.com/Deivu/Shoukaku i see lot of music bot using it becase of player disappearing form vc this bug is original erela.js but i try to convert erela code it shoukaku but its too deficalt for me (i try this on sharded bot)

i see you building erela.js i suggest fix that players disappearing vc

Tomato6966 commented 2 years ago

so you are saying that the players.get(id) property will say no players? and when u re-create it, it will?

pasindu20 commented 2 years ago

so you are saying that the players.get(id) property will say no players? and when u re-create it, it will?

player.sget(id) say player connected but on discord player not connected if i go player disappeard channel and use player.destroy() it will destroy

Tomato6966 commented 2 years ago

Never happens too me, you need to add all events like:

channelDelete --> player.destroy()

channelLeave (Bot) --> player.destroy()

channelDisconnect (Bot) --> player.destroy()

playerMove --> player.setVoiceChannel()