I was wondering how I could log who removed reactions from a message with Discord.js
. Is there a way to do it?
You can use the messageReactionRemove()
event .
client.on('messageReactionRemove', (reaction, user) => {
console.log(`${user.username} unreacted ${reaction.emoji.name} on this message: ${reaction.message.content}`)
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.