diff --git a/src/lib/me/MeManager.ts b/src/lib/me/MeManager.ts index e5970a7..134017b 100644 --- a/src/lib/me/MeManager.ts +++ b/src/lib/me/MeManager.ts @@ -103,6 +103,16 @@ export class MeManager extends Manager { return json as PlayerState; } + /** + * @description Get the object currently being played on the user's Spotify account. + * @returns {Promise} Returns a promise with the current playing information. + */ + async currentlyPlaying(): Promise { + const res = await this.http.get(`/v1/me/player/currently-playing`); + + return res.data as PlayerState; + } + /** * @description Check if one or more tracks is saved in the current user's library. (required scropes: user-library-read). * @returns {Promise} Returns a promise with the an array of booleans.