status activites

can i get a user or member activite or prescence what is he doing ?
4 Replies
d.js toolkit
d.js toolkit13mo 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!
The one
The oneOP13mo ago
const activity = member.presence.activities[0];
largeText: activity.assets?.largeText || '',
smallText: activity.assets?.smallText || '',
largeImage: activity.assets?.largeImage?.url || '',
smallImage: activity.assets?.smallImage?.url || ''
const activity = member.presence.activities[0];
largeText: activity.assets?.largeText || '',
smallText: activity.assets?.smallText || '',
largeImage: activity.assets?.largeImage?.url || '',
smallImage: activity.assets?.smallImage?.url || ''
` like this ??
ri
ri13mo ago
Try it, if that doesn't work, You may have forgotten to add the GuildPresences intent
teenxdom
teenxdom10mo ago
did you figure out how to get the details of the status, like what song someone is listening to on spotify for example

Did you find this page helpful?