25 Replies
- 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!Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
yes
why not just do
newPresence.status...
because im looking for the members custom status
do you have an event handler
no
what's the actual error you receive
or unexpected behavior you see
because
newPresence
cannot be undefined
and also have newPresence.member
not errori'm not recieving an error im recieving undefined
you still don't need to do
newPresence.member.presence
what is undefinedreturns undefined
newPresence
it can't, you'd receive an error with that code
something like
cannot read properties of undefined, reading member
or some such...
console says otherwise
show the full event code please
the code inside is not done yet but that doesn't matter
that log cannot return undefined, it would error at the first if statement
...
log
oldPresence, newPresence
on the first line of the listener ha
are you using
client.emit()
to test this?hm?
no
returns undefined
oh you mean
ah gotchu
yeah it returns the presence
so how do i get custom status of user than
alr ty
alr thanks
activities is returning not a function
might be using it wrong
it's an array
but how do i use te state property?
i got it sry i was being stupid
:((
didn't even realise i was replying sorry