Album src/structures/Album.ts#L130
Spotify api's album object.
Properties:
albumGroup albumType artists availableMarkets copyrights externalID externalURL genres id images label name popularity releaseDate releaseDatePrecision restrictions totalTracks tracks type uriMethods:
makeCodeImageconstructor(data, client) src/structures/Album.ts#L130
No documentation found.
Name | Type | Description |
---|---|---|
data | SimplifiedAlbum | Album | The raw data received from the api. |
client | Client | The spotify client. |
.albumGroup src/structures/Album.ts#L26 OPTIONAL
Type:
The field is present when getting an artist’s albums.
.availableMarkets src/structures/Album.ts#L41
Type:
The markets in which the album is available.
.genres src/structures/Album.ts#L106 OPTIONAL
Type:
A list of the genres used to classify the album. For example: “Prog Rock” , “Post-Grunge”. (If not yet classified, the array is empty.)
.images src/structures/Album.ts#L56
Type:
The cover art for the album in various sizes, widest first.
.popularity src/structures/Album.ts#L116 OPTIONAL
Type:
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular. The popularity is calculated from the popularity of the album’s individual tracks.
.releaseDate src/structures/Album.ts#L66
Type:
The date the album was first released, for example “1981-12-15”.
.releaseDatePrecision src/structures/Album.ts#L71
Type:
The precision with which release_date value is known: “year” , “month” , or “day”.
.restrictions src/structures/Album.ts#L76
Type:
Included in the response when a content restriction is applied.
.makeCodeImage(color) src/structures/Album.ts#L159
Returns a code image url from the spotify uri.
Returns:
Parameters:
Name | Type | Description |
---|---|---|
color | string | The color code in hex. |