Skip to content

Commit

Permalink
Fix missing documentation for playlistInfo (lavalink-devs#114)
Browse files Browse the repository at this point in the history
* Fix missing documentation for playlistInfo

* Update IMPLEMENTATION.md
  • Loading branch information
devoxin authored and freyacodes committed Jun 12, 2018
1 parent 83453f1 commit 4bec1b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions IMPLEMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ Response:
```json
{
"isPlaylist": false,
"playlistInfo": {},
"tracks": [
{
"track": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
Expand All @@ -251,6 +252,20 @@ Response:
}
```

If the identifier leads to a playlist, `playlistInfo` will contain two properties, `name` and `selectedTrack`
```json
{
"isPlaylist": true,
"playlistInfo": {
"name": "Example YouTube Playlist",
"selectedTrack": 3
},
"tracks": [
...
]
}
```

### Special notes
* When your shard's mainWS connection dies, so does all your lavalink audio connections.
* This also includes resumes
Expand Down

0 comments on commit 4bec1b2

Please sign in to comment.