#messageReactionAdd not returning values

26 messages · Page 1 of 1 (latest)

west etherBOT
#

• 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.

gleaming shell
#

do you have the GuildMessageReactions intent?

worn pollen
#

yes

gleaming shell
#

please show your intents

worn pollen
gleaming shell
#

pretty sure you do not need all of those intents or partials, but did you check to see if the event is being emitted?

worn pollen
#

yes, whenever i try print any of the parameters it returns undefined

gleaming shell
#

messageReaction and user both return undefined?

worn pollen
#

well

#

now it is printing somethig else

gleaming shell
#

what would that be?

worn pollen
#

its printing the guild info now

#

let me just check something

#

when i print user it prints

#

whe i print messagereaction it prints the guild info but

#

if i do user.messageId it returns undefined

gleaming shell
#

thats because user.messageId isnt a thing

worn pollen
#

but as you see in the print for user it prints "messageId"

gleaming shell
#

thats not part of the user though

worn pollen
#

oh

gleaming shell
#

thats part of the MessageReaction

worn pollen
#

ive looked at the documentation and tried to print all those values but all come back as undefined

gleaming shell
#

well yes because it's not really accessible. you can use <MessageReaction>.message.id instead

worn pollen
#

ive got it working sorry haha

#

the way i did it i was meant to have bot as the first param but didnt

#

thank u for helping