status activites

can i get a user or member activite or prescence what is he doing ?
4 Replies
d.js toolkit
d.js toolkit8mo 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!
theonezawaq
theonezawaqOP8mo 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 ??
kin.ts
kin.ts8mo ago
Try it, if that doesn't work, You may have forgotten to add the GuildPresences intent
teenxdom
teenxdom5mo ago
did you figure out how to get the details of the status, like what song someone is listening to on spotify for example
Want results from more Discord servers?
Add your server