Spotify Activity

Hi, Is there a way to retrieve the Spotify link of the currently playing song from a user's activity ? I can already retrieve the title and other infos using Presence.activities but I can't seem to find a URL.
14 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Liberta007
Liberta007OP17mo ago
I'm using discordjs 14.7.1
Liberta007
Liberta007OP17mo ago
I mean the Spotify activity has a clickable link in the title that anyone can open, I just need to read it, I don't understand what does OAuth2 has to do with that
axiprime
axiprime17mo ago
You were able to get the sync ID but it got remove since it was not documented. Which is the ID of the song
Liberta007
Liberta007OP17mo ago
So there is no sort of id or link to identify the song other than the title and author
axiprime
axiprime17mo ago
Yes in the class you can get it, but like I said its not documented.
Liberta007
Liberta007OP17mo ago
And do you know how to achieve that
axiprime
axiprime17mo ago
you just have to add the parameter in your Presence.js in the djs class
Liberta007
Liberta007OP17mo ago
This is how I retrieve the spotify activity
Liberta007
Liberta007OP17mo ago
and this is what I have in the object
axiprime
axiprime17mo ago
@liberta007
Liberta007
Liberta007OP17mo ago
what parameter
axiprime
axiprime17mo ago
If you want to have it you have to add the parameter syncId in the discord.js Presence.js class that's true
Liberta007
Liberta007OP17mo ago
So I have to modify the Presence object in the package it was sync_id Thanks for your help
Want results from more Discord servers?
Add your server