Documentation
Classes
discord-player
Playlist

Playlist

new Playlist(player, data)
ParameterTypeOptionalDescription
playerPlayerThe player
dataPlaylistInitDataThe data

Properties

public author: { name: string,url: string }

public description: string

public id: string

public player: Player

public rawPlaylist: any

public source: TrackSource

public thumbnail: string

public title: string

public tracks: Array<Track>

public type: 'playlist' | 'album'

public url: string

public durationFormatted: string

Formatted estimated duration of this playlist

public estimatedDuration: number

Estimated duration of this playlist

Methods

public [iterator](): Generator<Track, void, undefined>

public toJSON(withTracks?): PlaylistJSON

JSON representation of this playlist

ParameterTypeOptionalDescription
withTracksbooleanIf it should build json with tracks