我正在尝试使用 node.js 编写一个不和谐的机器人,但是我在使用 messageReactionAdd 时遇到了问题我现在不知道为什么当我对表情符号做出反应时机器人什么都不做。
我的代码:
bot.on('messageReactionRemove', (reaction, user) => {
console.log("that work 1");
if(reaction.emoji.name === "white_check_mark") {
console.log("that work 2");
}})
Run Code Online (Sandbox Code Playgroud)