Answer the question
In order to leave comments, you need to log in
How to use react in this code?
The command "userinfo. It is necessary that when you click on the reaction, another message is sent. The
question is in the reactions, how to count their number?
message.react("⬇")
let mssge = this.message
if (mssge.reactions = 2) {
message.channel.send("1")
}
Answer the question
In order to leave comments, you need to log in
I'm not sure I understand you correctly, but try a global variable, update it on a new click, and send it to the client.
Take the message from message.channel.send() and store it in a variable. You catch the messageReaction(Add/Remove) event when it happens - check the number of reactions (see link) on the message that you have stored in a variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question