#Getting the presence from user

6 messages · Page 1 of 1 (latest)

gloomy skiff
#

Hello! I've been trying to make a bot that gets my current Discord status (whether I'm online or offline) to show in my personal website.

I'm currently using Typescript in my project. I've read in different articles that it used to be done like this:

const { user } = interaction;
user?.presence // here's the user presence

But it looks like this was updated and no longer correct, I cannot find the presence property in the docs anywhere. I was also trying to use the PresenceManager, but I cannot get the instance as it doesn't seem available from the client.

I've been looking for a long time now but still cannot find a way to get the user's presence. Is this still possible? Also yes, I am already using the GuildPresences intent. Thanks for the help in advanced!

crystal portal
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

gloomy skiff
#

I am using Discord.js v14.7.1.

hard zealot
#

presence is on GuildMember not User.

gloomy skiff
#

Thank you so much

#

Really appreciate it