spotify-now
Version:
spotify, rgb and bob.
15 lines • 681 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrentTrackId = void 0;
const tslib_1 = require("tslib");
const provider_1 = (0, tslib_1.__importDefault)(require("../spotifyApi/provider"));
function getCurrentTrackId() {
var _a;
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
const currentPlayingResult = yield provider_1.default.getMyCurrentPlayingTrack();
const trackId = (_a = currentPlayingResult.body.item) === null || _a === void 0 ? void 0 : _a.id;
return trackId;
});
}
exports.getCurrentTrackId = getCurrentTrackId;
//# sourceMappingURL=getCurrentTrackId.js.map