[英]Is there a way to log who removed reactions using discord.js v12?
I was wondering how I could log who removed reactions from a message with Discord.js
.我想知道如何使用Discord.js
记录谁从消息中删除了反应。 Is there a way to do it?有没有办法做到这一点?
You can use the messageReactionRemove()
event .您可以使用messageReactionRemove()
事件。
client.on('messageReactionRemove', (reaction, user) => {
console.log(`${user.username} unreacted ${reaction.emoji.name} on this message: ${reaction.message.content}`)
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.