Discord Player

SearchResult

No description provided

SearchResult

new SearchResult(player, _data);
ParameterTypeOptional
playerPlayer
_dataSearchResultData

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

ParameterTypeOptional
extractorBaseExtractor<object>

public setPlaylist(playlist): SearchResult

ParameterTypeOptional
playlistPlaylist

public setQuery(query): SearchResult

ParameterTypeOptional
querystring

public setQueryType(type): SearchResult

ParameterTypeOptional
typeSearchQueryType`ext:${string}`

public setRequestedBy(user): SearchResult

ParameterTypeOptional
userUser

public setTracks(tracks): SearchResult

ParameterTypeOptional
tracksArray<Track<unknown>>

public toJSON(): SearchResultJSON

JSON representation of this search