Skip to content

Commit

Permalink
Fix bug with decodeTracks returning a single track
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Jul 18, 2023
1 parent 225c58e commit 2c61697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "dev.schlaubi.lavakord"
version = "5.0.1"
version = "5.0.2"

allprojects {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public suspend fun RestNode.decodeTrack(base64: String): Track = get(V4Api.Decod
*
* **Note:** This makes an API call, if you want to do this locally use [LavaplayerTrack.fromLavalink]
*/
public suspend fun RestNode.decodeTracks(tracks: Iterable<String>): Track = post(V4Api.DecodeTrack()) {
public suspend fun RestNode.decodeTracks(tracks: Iterable<String>): List<Track> = post(V4Api.DecodeTrack()) {
setBody(tracks)
}

0 comments on commit 2c61697

Please sign in to comment.