T
T
TolaF2020-05-26 06:57:46
Node.js
TolaF, 2020-05-26 06:57:46

How to make the bot put certain reactions to the message?

How to make the bot put certain reactions to your message?
Example:5ec37dc89640b069529304.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-06-18
@TolaF

use the given code:

.then(sentMessage => {
       sentMessage.react(`✅`) // вместо галочки вставьте вашу реакцию.
       /* для добавления большего количества реакций повторите строку с sentMessage 
       столько раз, сколько вам нужно */
})

example:
if (message.content === `!vote`) {
     message.channel.send(`Сообщение с реакцией.`).then(sentMessage => {
     sentMessage.react(`✅`)
     sentMessage.react(`❌`) 
    }) 
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question