K
K
KENCORE2020-09-19 21:38:19
Node.js
KENCORE, 2020-09-19 21:38:19

How can I make it so that when I click on a certain emoji in a message, and that the bot then throws this message into another channel?

I want to know how to make it so that when someone writes a message to a certain channel, and so that under it there are two emoji right away - a tick and a cross. Then, when I click on the checkmark, so that the message written by the user is sent to another channel by the bot, and when I click on the cross, so that nothing happens.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-19
@KENCORE

message detection:

client.on("message", message => {
    . . .
})

put react not message:
message.channel.send("Сообщение").then(message => {
    message.react("реакция")
})

message/reaction collectors: https://discordjs.guide/popular-topics/collectors.html
link it all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question