new Episode( spotify, data )

Description

Represents the episode.

Parameters
Name Type Description
spotify Spotify

The spotify client.

data object

The episode object data.

Details

Members


spotify :Spotify

Description

The spotify client.

Details

Methods


save() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to save the episode.

Returns

remove() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to remove the episode.

Returns

starred() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to check if a episodes saved in the current Spotify user's library.

Returns

queue( device ) → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to queue an episode.

Parameters
Name Type Description
device string

The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

Returns