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

Players disappearing from voice channel #1

Closed
pasindu20 opened this issue Jun 25, 2022 · 3 comments
Closed

Players disappearing from voice channel #1

pasindu20 opened this issue Jun 25, 2022 · 3 comments

Comments

@pasindu20
Copy link

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
Copy link
Owner

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

@pasindu20
Copy link
Author

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
Copy link
Owner

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()

This issue was closed.
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

2 participants