-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow user only set user data independently in PlayerUpdateBuilder/Player #18
Comments
As I replied in your other issue, I'll add a bulder for track updates. |
Would you mind trying version You can get this version by adding the following repository repositories {
maven("https://maven.lavalink.dev/snapshots")
} |
Your first thing, that is exactly how I wrote it, the builder returns the PlayerUpdateTrack object. Second, do not send both the encoded AND the identifier. Sending the identifier causes more latency because lavalink will have to look up the track again. The encoded object is the entire track including the identifier. Please have a look at the examples provided and the documentation on the builder. Example: https://github.com/lavalink-devs/lavalink-client/blob/main/testbot/src/main/java/me/duncte123/testbot/AudioLoader.java#L22-L27 |
First, okay. I just miss the 'interface' method in Second, roger that. |
Resolved in version |
In some cases, users may only want to set their user data instead of having to create the entire Track object. Lavalink only requires the user to provide an encodedTrack to be able to play music.
Creating the Track object is annoying because it requires dev.arbjerg.lavalink.protocol.v4.Track, which includes many Kotlin elements that are not user-friendly for Java developers.
Moreover, while the identifier can be modified independently, why there isn't a similar option for user data?
Edit:
What I mean for
not user-friendly
, my current solutionThe text was updated successfully, but these errors were encountered: