#How can I pull up the person's status?

26 messages · Page 1 of 1 (latest)

thick hearth
#

I'm trying member.presence it's giving null

clear oxideBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
  • Marked as resolved by staff
teal harness
#

Do you have the guild presences intent?

thick hearth
thick hearth
#

@teal harness

teal harness
#

Would rather you didn't ping me

thick hearth
teal harness
#

Whatever member you checked just isn't present right now it would seem. null is valid, if theyre offline or similar

thick hearth
#

I wanted to pull this from his personalized status

teal harness
#

I dont need to see the member object, I need to know where you're getting it from

teal harness
#

So they're joining the guild? I actually would have thought that would include a presence Thonk

thick hearth
#

I want to pull his status

#

How can I do it?

teal harness
#

Well you need his presence first

thick hearth
#

I want to pull this status when the person joins the guild

thick hearth
teal harness
#

You can try force-fetching the guild member, not sure if that will grab it, or wait for a presenceUpdate event

gentle plinthBOT
#

event (event) Client#presenceUpdate
Emitted whenever a guild member's presence (e.g. status, activity) is changed.

thick hearth
#

member22.presence

#

gives null