Skip to main content

Class: MusicSearchResult<T>

Represents search result, usually returned from client.search();.

MusicSearchResult is a helper class to manage search result

Example

const result = await music.search("Keyword", "song");

console.log(result.items); // search result from first page

let nextSearchResult = await result.next();
console.log(nextSearchResult); // search result from second page

nextSearchResult = await result.next();
console.log(nextSearchResult); // search result from third page

console.log(result.items); // search result from first, second, and third page.

Type parameters

NameType
Textends MusicSearchType | undefined = "song"

Hierarchy