status activites

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