-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
The "botDisconnect" event is not emitted #972
Labels
bug
Something isn't working
Comments
I managed to make a hotfix but there are still some adjustments to make |
JusteLoneWolf
added a commit
to JusteLoneWolf/discord-player
that referenced
this issue
Jan 3, 2022
it's an hot fox for this issue Androz2091#972
5 tasks
Known issue |
It works now |
With the hot fix yes but also no |
Yep, just found that out now lmao |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The "botDisconnect" event is not emitted
Info:
Additional context
I think I know why it is happening. The "botDisconnect" event is emitted in
_handleVoiceState
method ofPlayer
Class afterstatement that checks if the client has disconnected. For "botDisconnect" to get emitted the
newState.channelId
has to befalse
. But at the beggining of the method we can see this statementthat checks if
newState.channelId
istrue
. So the "botDisconnect" event cannot be emitted becausenewState.channelId
cannot be bothtrue
andfalse
.That's what I think is happening. Maybe I'm missing something?
The text was updated successfully, but these errors were encountered: