Closed xayanide closed 2 years ago
:tada: This issue has been resolved in version 3.3.0-next.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 3.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Describe the bug Directly related to #104 , still persisted.
If a user leaves before Quaver could play a track, it crashes, shows an error on console and crashes with unhandledRejection in error.log
Reproducible with play and search. Applies to both stage and voice channels.
Affected versions What versions of Quaver are affected by this bug? All versions after 2.8.0-next.1
This exact version. https://github.com/ZapSquared/Quaver/compare/2.7.0...2.8.0-next.1
https://github.com/ZapSquared/Quaver/commit/652504b3ef1f31098b8b3050d91473dd604a3a38
Every version below 2.8.0-next.1 doesn't crash Quaver, but still plays the track, or queries the track while it is not even in the channel after doing the steps.
Play command
To reproduce Steps to reproduce the behavior:
Make sure 24/7 is off.
Join the channel
Put your hand near the enter key.
Use play, input any track, and prepare to enter it.
After entering, wait for Quaver to process it a bit,
If the text that shows "Quaver is typing..." is no longer grey, in that moment, disconnect from the channel you're in.
Quaver shall crash.
See error.
Make sure 24/7 is off.
Join the channel
Search any track.
Select 1 or more tracks.
Put your cursor near the disconnect button.
Queue the tracks by clicking away.
Wait for Quaver to process it a bit..
If the text that shows "Quaver is typing..." is no longer grey, in that moment, disconnect from the channel you're in.
Disconnect, and Quaver shall crash.
See error.
Either way these errors are similar and may interchange, because both play and search query tracks anyway.
Expected behavior Should provide the check correctly and cancel the interaction instead. Quaver shouldn't crash from this behaviour from its users.