SpotifyApiSpotify LogoJS

createCurrentlyPlaying src/structures/Player.ts#L46

Create the object structure containing the currently playing details.

const currentlyPlaying = createCurrentlyPlaying(client, fetchedData);

Returns:

CurrentlyPlaying

Parameters:

NameTypeDescription
clientClientThe spotify client.
dataanyThe data from the spotify api.