discord bot add reaction code example
Example 1: discord.py add reaction to message
#1
message = ctx.send("text")
#2
message = channel.send("text")
#3
message = channel.fetch_message(messageid)
#add reaction to message
emoji = '\N{THUMBS UP SIGN}'
await message.add_reaction(emoji)
Example 2: how to test on user reaction discord.js
client.on('messageReactionAdd', (reaction, user) => {
console.log('a reaction has been added');
});
Example 3: discord bot v12 reaction remove code
message.reactions.removeAll()