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

fix: update player options validation to allow single objects #83

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

EvilG-MC
Copy link
Contributor

@EvilG-MC EvilG-MC commented Dec 10, 2024

After a some research, I found the issue which prevented the player's voice payload from being updated.

Internally, the player was updated with the payload but due to that small issue in the if statement, did not allow it to sync the data completely.

In the first instance, the payload was received but was never processed for allocation due to the check.

The proposed solution has been tested and is functional and does not affect other operations as it only allows paylods to be processed with a single key.

Copy link

pkg-pr-new bot commented Dec 10, 2024

Open in Stackblitz

npm i https://pkg.pr.new/Tomato6966/lavalink-client@83

commit: 0cfd310

Copy link
Owner

@Tomato6966 Tomato6966 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for telling that, please make it .length > 0 instead of >= 1

@EvilG-MC
Copy link
Contributor Author

Done!

@Tomato6966 Tomato6966 merged commit 1c36340 into Tomato6966:main Dec 10, 2024
2 checks passed
@EvilG-MC EvilG-MC deleted the fix/syncdata branch December 10, 2024 13:12
@Tomato6966
Copy link
Owner

Published with v2.4.2

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

Successfully merging this pull request may close these issues.

2 participants