【问题标题】:Is there a way to log who removed reactions using discord.js v12?有没有办法使用 discord.js v12 记录谁删除了反应?
【发布时间】:2020-09-22 23:18:06
【问题描述】:

我想知道如何记录谁从Discord.js 的消息中删除了反应。有办法吗?

【问题讨论】:

  • 审核日志中未记录删除反应

标签: javascript node.js discord discord.js


【解决方案1】:

您可以使用messageReactionRemove() event

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

【讨论】:

  • 这将不会返回删除反应的人的用户对象,而是返回删除表情符号或反应表情符号的用户的用户对象
猜你喜欢
  • 2020-12-25
  • 2020-12-05
  • 2021-07-13
  • 2021-10-10
  • 2021-03-13
  • 2011-04-13
  • 1970-01-01
  • 2021-10-10
  • 1970-01-01
相关资源
最近更新 更多