SearchResult
No description provided
SearchResult
| Parameter | Type | Optional |
|---|---|---|
| player | Player | ❌ |
| _data | SearchResultData | ❌ |
Properties
public player: any
public extractor: any
The extractor
public playlist: any
Playlist result
public query: any
The search query
public queryType: any
The search query type
public requestedBy: any
Requested by
public tracks: any
Tracks result
Methods
public execute(): Promise<SearchResult>
Re-execute this search
public hasPlaylist(): boolean
If this search result has playlist
public hasTracks(): boolean
If this search result has tracks
public isEmpty(): boolean
If this search result is empty
public setExtractor(extractor): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| extractor | BaseExtractor<object> | ❌ |
public setPlaylist(playlist): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| playlist | Playlist | ❌ |
public setQuery(query): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| query | string | ❌ |
public setQueryType(type): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| type | SearchQueryType`ext:${string}` | ❌ |
public setRequestedBy(user): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| user | User | ❌ |
public setTracks(tracks): SearchResult
| Parameter | Type | Optional |
|---|---|---|
| tracks | Array<Track<unknown>> | ❌ |
public toJSON(): SearchResultJSON
JSON representation of this search