Episode src/structures/Episode.ts#L122
Spotify api's episode object.
Properties:
audioPreviewURL description duration explicit externalURL htmlDescription id images isExternallyHosted isPlayable languages name releaseDate releaseDatePrecision restrictions resumePoint show type uriMethods:
makeCodeImageconstructor(data, client) src/structures/Episode.ts#L122
No documentation found.
Name | Type | Description |
---|---|---|
data | Episode | SimplifiedEpisode | |
client | Client | The spotify client. |
.audioPreviewURL src/structures/Episode.ts#L24 OPTIONAL
Type:
A URL to a 30 second preview (MP3 format) of the episode. null if not available.
.description src/structures/Episode.ts#L29
Type:
A description of the episode. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
.explicit src/structures/Episode.ts#L39
Type:
Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).
.htmlDescription src/structures/Episode.ts#L49
Type:
A description of the episode. This field may contain HTML tags.
.images src/structures/Episode.ts#L59
Type:
The cover art for the episode in various sizes, widest first.
.isExternallyHosted src/structures/Episode.ts#L64
Type:
True if the episode is hosted outside of Spotify’s CDN.
.isPlayable src/structures/Episode.ts#L69
Type:
True if the episode is playable in the given market. Otherwise false.
.languages src/structures/Episode.ts#L74
Type:
A list of the languages used in the episode, identified by their ISO 639 code.
.releaseDate src/structures/Episode.ts#L84
Type:
The date the episode was first released, for example "1981-12-15". Depending on the precision, it might be shown as "1981" or "1981-12".
.releaseDatePrecision src/structures/Episode.ts#L89
Type:
The precision with which release_date value is known: "year", "month", or "day".
.restrictions src/structures/Episode.ts#L94
Type:
Included in the response when a content restriction is applied.
.resumePoint src/structures/Episode.ts#L99 OPTIONAL
Type:
The user’s most recent position in the episode. Set if the supplied access token is a user token and has the scope ‘user-read-playback-position’.
.makeCodeImage(color) src/structures/Episode.ts#L155
Returns a code image url from the spotify uri.
Returns:
Parameters:
Name | Type | Description |
---|---|---|
color | string | The color code in hex. |