status activites

can i get a user or member activite or prescence what is he doing ?
4 Replies
d.js toolkit
d.js toolkit14mo 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 oneOP14mo 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
ri14mo ago
Try it, if that doesn't work, You may have forgotten to add the GuildPresences intent
teenxdom
teenxdom11mo 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?