Playlist src/structures/Playlist.ts#L102
Spotify api's playlist object.
Properties:
collaborative description externalURL id images name owner public snapshotID totalFollowers totalTracks tracks type uriMethods:
makeCodeImageconstructor(data, client) src/structures/Playlist.ts#L102
No documentation found.
Name | Type | Description |
---|---|---|
data | Playlist | SimplifiedPlaylist | The raw data received from the api. |
client | Client | The spotify client. |
.collaborative src/structures/Playlist.ts#L28
Type:
True if the owner allows other users to modify the playlist.
.description src/structures/Playlist.ts#L33
Type:
The playlist description. Only returned for modified, verified playlists, otherwise null.
.images src/structures/Playlist.ts#L48
Type:
Images for the playlist. The array may be empty or contain up to three images.
.public src/structures/Playlist.ts#L88 OPTIONAL
Type:
The playlist’s public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant.
.snapshotID src/structures/Playlist.ts#L63
Type:
The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version
.totalFollowers src/structures/Playlist.ts#L83 OPTIONAL
Type:
The total number of followers of the playlist.
.tracks src/structures/Playlist.ts#L93 OPTIONAL
Type:
Information about the tracks of the playlist. Note, a track object may be null. This can happen if a track is no longer available.
.makeCodeImage(color) src/structures/Playlist.ts#L126
Returns a code image url from the spotify uri.
Returns:
Parameters:
Name | Type | Description |
---|---|---|
color | string | The color code in hex. |