S
S
sqtr2020-11-23 12:37:27
Node.js
sqtr, 2020-11-23 12:37:27

How to make the bot change the message when you click on the reaction?

I need to change the text of the message when clicking on the reaction.

bot.on('message', msg => {

  if (msg.content === '!1') {
    msg.channel.send('TESt').then(sentMessage => {
      sentMessage.react(`✅`);
      sentMessage.react(`❌`);
    })

  }


5fbb82ace7841313710766.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-23
@sqtr

https://discord.js.org/#/docs/main/stable/class/Me...

msg.channel.send('TESt').then(sentMessage => {
      . . .
      sentMessage.edit("новое сообщение")
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question