SearchResult
Familiar search result wrapper used by Player-level playback.
You are reading the v8 docsDev
ClassTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/structures/search-result.ts:14class SearchResultFamiliar search result wrapper used by Player-level playback.
Constructors
constructor
constructor(data: SearchResultData)Create a result from resolved tracks and optional playlist metadata.
Parameters
| Name | Type | Description |
|---|---|---|
| data | SearchResultData | Search result payload. |
Properties
tracksreadonly
readonly tracks: Track<unknown>[]Tracks returned by the search operation.
playlistreadonly
readonly playlist: Playlist | nullPlaylist metadata returned with the tracks, when available.
Static methods
emptystatic
static empty(): SearchResultCreate an empty result when no source integration can resolve a query.
Returns
SearchResult