Answer the question
In order to leave comments, you need to log in
How to make the bot put reactions on messages of any user on a specific text channel?
Usage example:
Any user writes the message "I want a cake" The
bot under the message "I want a cake" must put three reactions of pre-selected emojis that other users can pierce
And so with any user, i.e. there will be the same reactions under every post on a given channel so people can rate each other's posts
Answer the question
In order to leave comments, you need to log in
client.on("messageCreate", async (message) => {
await message.react("1️⃣"); // >
await message.react("2️⃣"); // > ваши эмодзи
await message.react("3️⃣"); // >
});
to make the bot respond to regular messages, don't forget to add the intent "GUILD_MESSAGES"const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question