createRecentlyPlayed src/structures/Player.ts#L69
Creates a recently played structure containg the playhistory details.
const recentlyPlayed = createRecentlyPlayed(client, data);
Returns:
RecentlyPlayedParameters:
Name | Type | Description |
---|---|---|
client | Client | The spotify api client. |
data | CursorPaging<PlayHistory> | The raw data fetched from the spotify api. |