lavalink-devs / lavalink-client

Lavalink client for lavalink v4
https://lavalink.dev/
MIT License
16 stars 5 forks source link

PlayerUpdateBuilder trackUpdate got overwrites once other method got called #19

Closed zvyap closed 9 months ago

zvyap commented 9 months ago

The setEncodedTrack action got override by other action call that modify track data. image

Some method update override correctly (stopTrack, setTrack), but not those actions that do not conflict with each other (setEncodedTrack, setIdentifier).

Source code will explain more clearly image

duncte123 commented 9 months ago

You cannot set the identifier and the encoded track at the same time. The documentation specifies that those setters override all fields. I'll create a builder so people can set only the fields they need.