首页 > 解决方案 > 有没有办法使用 discord.js v12 记录谁删除了反应?

问题描述

我想知道如何记录谁从消息中删除了Discord.js. 有没有办法做到这一点?

标签: javascriptnode.jsdiscorddiscord.js

解决方案


你可以使用messageReactionRemove()事件

client.on('messageReactionRemove', (reaction, user) => {
  console.log(`${user.username} unreacted ${reaction.emoji.name} on this message: ${reaction.message.content}`)
});

推荐阅读