From 4bec1b28d5770b038634112cc6e75568a2f37858 Mon Sep 17 00:00:00 2001 From: Luke <15076404+Devoxin@users.noreply.github.com> Date: Tue, 12 Jun 2018 22:36:18 +0100 Subject: [PATCH] Fix missing documentation for playlistInfo (#114) * Fix missing documentation for playlistInfo * Update IMPLEMENTATION.md --- IMPLEMENTATION.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index 6574137b3..c6a724511 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -233,6 +233,7 @@ Response: ```json { "isPlaylist": false, + "playlistInfo": {}, "tracks": [ { "track": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==", @@ -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