javascript - 有没有办法使用 discord.js v12 记录谁删除了反应?
问题描述
我想知道如何记录谁从消息中删除了Discord.js
. 有没有办法做到这一点?
解决方案
你可以使用messageReactionRemove()
事件。
client.on('messageReactionRemove', (reaction, user) => {
console.log(`${user.username} unreacted ${reaction.emoji.name} on this message: ${reaction.message.content}`)
});
推荐阅读
- php - PHP Symfony 服务器 - “驱动程序发生异常:找不到驱动程序”
- python - 当用字典映射张量值时,我得到 TypeError: Tensor is unhashable。相反,使用 tensor.ref() 作为键
- python - Pytorch GlobalAttention forward() 缺少 2 个必需的位置参数:“edge_index”和“batch”
- javascript - 我如何在反应内联样式中使用 HSL 颜色?
- react-native - React Native touchableOpacity 和 ScrollView 在 ios 或 android 上无法正常工作
- winapi - fasm x64 windows gdi编程困难-调用stretchdibits未按预期绘制屏幕
- python - Patreon API - AttributeError: 'dict' 对象在解析顾客时没有属性'data'
- flutter - android studio中第二个设备选择下拉菜单有什么用?
- android - 底部导航栏未显示 - Android
- r - R - 使用循环搜索一个变量和另一个变量并创建新的合并变量