N
N
not important .2021-09-09 02:58:07
Node.js
not important ., 2021-09-09 02:58:07

How to find out all users who have reacted to a selected message in discord.js?

I check via:

testemoji = client.channels.cache.get("channel_id").messages.cache.get("message_id").reactions.cache.get("emoji_id").users.cache.has(user_id);

if (testemoji == true) { console.log("NICE!") } else { console.log("CAN'T NICE!") }

And for example, they clicked on the reaction 5 times, but it shows 0, but while the Bot is turned on and I wring it out and click on the reaction again, it sees it and counts it as 1 reaction, and the rest does not see it, but if you restart the Bot, then it again forgets and shows 0...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question