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
- 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!I'm using discordjs 14.7.1
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
You were able to get the sync ID but it got remove since it was not documented.
Which is the ID of the song
So there is no sort of id or link to identify the song other than the title and author
Yes in the class you can get it, but like I said its not documented.
And do you know how to achieve that
you just have to add the parameter in your Presence.js in the djs class
This is how I retrieve the spotify activity
and this is what I have in the object
@liberta007
what parameter
If you want to have it you have to add the parameter syncId in the discord.js Presence.js class
that's true
So I have to modify the Presence object in the package
it was sync_id
Thanks for your help