new Artist(spotify, entry, idopt, limitopt)
Artist entry.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
spotify |
SpotifyRequestHandler | Spotify request handler. |
|
entry |
string | The artist to search for. |
|
id |
string |
<optional> |
The Spotify ID, if known. |
limit |
string |
<optional> |
The number of albums to fetch. |
- Source:
Members
albums
Array of albums.
- Source:
entry
Entry string.
- Source:
id
Spotify ID.
- Source:
limit
Number of tracks to fetch.
- Source:
name
The artist name.
- Source:
spotify
Spotify request handler.
- Source:
Methods
clone(response)
Clone a JSON response.
Parameters:
Name | Type | Description |
---|---|---|
response |
Object | The response. |
- Source:
createQueue(response) → {Promise|Queue}
Create a queue of tracks.
Parameters:
Name | Type | Description |
---|---|---|
response |
JSON | A JSON response object. |
- Source:
Returns:
A queue of tracks.
- Type
- Promise | Queue
dispatch() → {Promise|Queue}
Dispatch entry.
- Source:
Returns:
A queue of tracks.
- Type
- Promise | Queue
fetchAlbums() → {Promise|JSON}
Fetch albums.
- Source:
Returns:
A JSON response.
- Type
- Promise | JSON
searchForArtist() → {Promise|JSON}
Search for artist.
- Source:
Returns:
A JSON response.
- Type
- Promise | JSON