Skip to content

Commit 7a5ea13

Browse files
committed
deprecate updateTrack that directly accepts builder
1 parent 27d9668 commit 7a5ea13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/dev/arbjerg/lavalink/client/IUpdatablePlayer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ interface IUpdatablePlayer {
2424
*
2525
* @return The updated builder, useful for chaining
2626
*/
27+
@Deprecated(
28+
message = "Just call .build on the builder",
29+
replaceWith = ReplaceWith("setTrack(update.build())")
30+
)
2731
fun updateTrack(update: TrackUpdateBuilder): PlayerUpdateBuilder {
2832
return updateTrack(update.build())
2933
}

0 commit comments

Comments
 (0)