SpotifyApiSpotify LogoJS

createCurrentPlayback src/structures/Player.ts#L30

Create the current playback structure.

const currentPlayback = createCurrentPlayback(client, fetchedData);

Returns:

CurrentPlayback

Parameters:

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