Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jan 20, 2024
1 parent 790bc13 commit e740a72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/main/kotlin/dev/arbjerg/lavalink/client/IUpdatablePlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ interface IUpdatablePlayer {
*
* @return The updated builder, useful for chaining
*/
fun setTrack(update: TrackUpdateBuilder): PlayerUpdateBuilder {
return setTrack(update.build())
fun updateTrack(update: TrackUpdateBuilder): PlayerUpdateBuilder {
return updateTrack(update.build())
}

/**
Expand All @@ -36,7 +36,7 @@ interface IUpdatablePlayer {
*
* @return The updated builder, useful for chaining
*/
fun setTrack(update: PlayerUpdateTrack): PlayerUpdateBuilder
fun updateTrack(update: PlayerUpdateTrack): PlayerUpdateBuilder

/**
* @deprecated Use [setTrack] instead.
Expand Down Expand Up @@ -66,7 +66,7 @@ interface IUpdatablePlayer {
*
* @return The updated builder, useful for chaining
*
* @deprecated Use [setTrack] with the [TrackUpdateBuilder] instead.
* @deprecated Use [updateTrack] with the [TrackUpdateBuilder] instead.
*/
fun setEncodedTrack(encodedTrack: String?): PlayerUpdateBuilder

Expand All @@ -75,7 +75,7 @@ interface IUpdatablePlayer {
*
* @return The updated builder, useful for chaining
*
* @deprecated Use [setTrack] with the [TrackUpdateBuilder] instead.
* @deprecated Use [updateTrack] with the [TrackUpdateBuilder] instead.
*/
fun omitEncodedTrack(): PlayerUpdateBuilder

Expand All @@ -88,7 +88,7 @@ interface IUpdatablePlayer {
*
* @return The updated builder, useful for chaining
*
* @deprecated Use [setTrack] with the [TrackUpdateBuilder] instead.
* @deprecated Use [updateTrack] with the [TrackUpdateBuilder] instead.
*/
fun setIdentifier(identifier: String?): PlayerUpdateBuilder

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/dev/arbjerg/lavalink/client/LavalinkPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class LavalinkPlayer(private val node: LavalinkNode, protocolPlayer: Player) : I
override fun setTrack(track: Track?) = PlayerUpdateBuilder(node, guildId)
.setTrack(track)

override fun setTrack(update: PlayerUpdateTrack) = PlayerUpdateBuilder(node, guildId)
.setTrack(update)
override fun updateTrack(update: PlayerUpdateTrack) = PlayerUpdateBuilder(node, guildId)
.updateTrack(update)

override fun stopTrack() = PlayerUpdateBuilder(node, guildId)
.stopTrack()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PlayerUpdateBuilder internal constructor(private val node: LavalinkNode, p
return this
}

override fun setTrack(update: PlayerUpdateTrack): PlayerUpdateBuilder {
override fun updateTrack(update: PlayerUpdateTrack): PlayerUpdateBuilder {
this.trackUpdate = update.toOmissible()

return this
Expand Down

0 comments on commit e740a72

Please sign in to comment.