You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| encoded | string | The base64 encoded track data |
59
+
| info |[Track Info](#track-info) object | Info about the track |
60
+
| pluginInfo | object | Additional track info provided by plugins |
61
+
| userData | object | Additional track data provided via the [Update Player](#update-player) endpoint |
61
62
62
63
#### Track Info
63
64
@@ -89,7 +90,7 @@ When Lavalink encounters an error, it will respond with a JSON object containing
89
90
This endpoint is used to resolve audio tracks for use with the [Update Player](#update-player) endpoint.
90
91
91
92
92
-
!!! note
93
+
!!! tip
93
94
94
95
Lavalink supports searching via YouTube, YouTube Music, and Soundcloud. To search, you must prefix your identifier with `ytsearch:`, `ytmsearch:` or `scsearch:` respectively.
95
96
@@ -136,7 +137,8 @@ Response:
136
137
"data": {
137
138
"encoded": "...",
138
139
"info": { ... },
139
-
"pluginInfo": { ... }
140
+
"pluginInfo": { ... },
141
+
"userData": { ... }
140
142
}
141
143
}
142
144
```
@@ -181,7 +183,8 @@ Array of [Track](#track) objects from the search result.
181
183
{
182
184
"encoded": "...",
183
185
"info": { ... },
184
-
"pluginInfo": { ... }
186
+
"pluginInfo": { ... },
187
+
"userData": { ... }
185
188
},
186
189
...
187
190
]
@@ -259,7 +262,8 @@ Response:
259
262
"isrc": null,
260
263
"sourceName": "youtube"
261
264
},
262
-
"pluginInfo": {}
265
+
"pluginInfo": { ... },
266
+
"userData": { ... }
263
267
}
264
268
```
265
269
@@ -313,7 +317,8 @@ Array of [Track](#track) objects
313
317
"isrc": null,
314
318
"sourceName": "youtube"
315
319
},
316
-
"pluginInfo": {}
320
+
"pluginInfo": { ... },
321
+
"userData": { ... }
317
322
},
318
323
...
319
324
]
@@ -588,7 +593,8 @@ GET /v4/sessions/{sessionId}/players
588
593
"isrc": null,
589
594
"sourceName": "youtube"
590
595
},
591
-
"pluginInfo": {}
596
+
"pluginInfo": { ... },
597
+
"userData": { ... }
592
598
},
593
599
"volume": 100,
594
600
"paused": false,
@@ -676,6 +682,10 @@ Updates or creates the player for this guild if it doesn't already exist.
| encoded?*| ?string | The base64 encoded track to play. `null` stops the current track |
718
+
| identifier?*| string | The identifier of the track to play |
719
+
| userData? | object | Additional track data to be sent back in the [Track Object](#track)|
720
+
721
+
!!! info
722
+
723
+
\* `encoded` and `identifier` are mutually exclusive.
701
724
702
725
When `identifier` is used, Lavalink will try to resolve the identifier as a single track. An HTTP `400` error is returned when resolving a playlist, search result, or no tracks.
703
726
@@ -706,8 +729,11 @@ When `identifier` is used, Lavalink will try to resolve the identifier as a sing
Copy file name to clipboardExpand all lines: docs/changelog/v4.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,11 @@
30
30
* Update to the [Protocol Module](https://github.com/lavalink-devs/Lavalink/tree/master/protocol) to support Kotlin/JS
31
31
* Removal of all `/v3` endpoints except `/version`. All other endpoints are now under `/v4`
32
32
33
-
> **Warning**
34
-
> This is a beta release, and as such, may contain bugs. Please report any bugs you find to the [issue tracker](https://github.com/lavalink-devs/Lavalink/issues/new/choose).
35
-
> For more info on the changes in this release, see [here](../api/index.md#v370---v400)
36
-
> If you have any question regarding the changes in this release, please ask in the [support server]({{ discord_help }}) or [GitHub discussions](https://github.com/lavalink-devs/Lavalink/discussions/categories/q-a)
33
+
!!! warning
34
+
35
+
This is a beta release, and as such, may contain bugs. Please report any bugs you find to the [issue tracker](https://github.com/lavalink-devs/Lavalink/issues/new/choose).
36
+
For more info on the changes in this release, see [here](../api/index.md#v370---v400)
37
+
If you have any question regarding the changes in this release, please ask in the [support server]({{ discord_help }}) or [GitHub discussions](https://github.com/lavalink-devs/Lavalink/discussions/categories/q-a)
37
38
38
39
Contributors:
39
40
[@topi314](https://github.com/topi314), [@freyacodes](https://github.com/freyacodes), [@DRSchlaubi](https://github.com/DRSchlaubi) and [@melike2d](https://github.com/melike2d)
0 commit comments