B
B
Balfri542020-02-27 13:05:06
WordPress
Balfri54, 2020-02-27 13:05:06

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

3 answer(s)
A
Artem Gvozdev, 2019-07-08
@arty23_03

https://support.hostgator.com/articles/specialized...

V
Vladimir, 2020-02-27
@HistoryART

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.

A
Artem Melnykov, 2020-03-01
@NickProgramm

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 question

Ask a Question

731 491 924 answers to any question