Ϊʲô messageReactionAdd ʲô¶¼²»×ö discord.js

Why messageReactionAdd do nothing discord.js(Ϊʲô messageReactionAdd ʲô¶¼²»×ö discord.js)
±¾ÎĽéÉÜÁËΪʲô messageReactionAdd ʲô¶¼²»×ö discord.jsµÄ´¦Àí·½·¨£¬¶Ô´ó¼Ò½â¾öÎÊÌâ¾ßÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ£¬ÐèÒªµÄÅóÓÑÃÇÏÂÃæËæןú°æÍøµÄС±àÀ´Ò»Æðѧϰ°É£¡

ÎÊÌâÃèÊö

ÎÒÕýÔÚ³¢ÊÔʹÓà node.js ±àдһ¸ö²»ºÍгµÄ»úÆ÷ÈË£¬µ«ÎÒÓöµ½ÁË messageReactionAdd µÄÎÊÌâÎÒÏÖÔÚ²»Ã÷°×Ϊʲôµ±ÎÒ¶Ô±íÇé·ûºÅ×ö³ö·´Ó¦Ê±»úÆ÷ÈËʲô¶¼²»×ö.

I'am trying to code a discord bot with node.js, but i have a problem with messageReactionAdd I don't now why the bot does nothing when i react with an emoji.

ÎҵĴúÂë:

bot.on('messageReactionRemove', (reaction, user) => {
console.log("that work 1");
if(reaction.emoji.name === "white_check_mark") {
    console.log("that work 2");
}})

ÍƼö´ð°¸

ʼþ messageReactionAdd ºÍ messageReactionRemove ½öÊÊÓÃÓÚ»º´æÏûÏ¢.ÄúÐèÒªÔÚ´úÂëÖÐÌí¼ÓԭʼʼþÒÔ´¥·¢ÈκÎÏûÏ¢.https://github.com/AnIdiotsGuide/discordjs-bot-guide/blob/master/coding-guides/raw-events.md

Events messageReactionAdd and messageReactionRemove working only for cached messages. You need add raw event to your code for trigger any message. https://github.com/AnIdiotsGuide/discordjs-bot-guide/blob/master/coding-guides/raw-events.md

Õâƪ¹ØÓÚΪʲô messageReactionAdd ʲô¶¼²»×ö discord.jsµÄÎÄÕ¾ͽéÉܵ½ÕâÁË£¬Ï£ÍûÎÒÃÇÍƼöµÄ´ð°¸¶Ô´ó¼ÒÓÐËù°ïÖú£¬Ò²Ï£Íû´ó¼Ò¶à¶àÖ§³Ö¸ú°æÍø£¡

±¾Õ¾²¿·ÖÄÚÈÝÀ´Ô´»¥ÁªÍø,Èç¹ûÓÐͼƬ»òÕßÄÚÈÝÇÖ·¸ÄúµÄȨÒæÇëÁªÏµÎÒÃÇɾ³ý£¡

Ïà¹ØÎĵµÍƼö

Using discord.js to detect image and respond(ʹÓà discord.js ¼ì²âͼÏñ²¢ÏìÓ¦)
Check if user ID exists in Discord server(¼ì²é Discord ·þÎñÆ÷ÖÐÊÇ·ñ´æÔÚÓû§ ID)
Guild Member Add does not work (discordjs)(¹«»á³ÉÔ±Ìí¼Ó²»Æð×÷ÓÃ(discordjs))
Creating my first bot using REPLIT but always error Discord.JS(ʹÓà REPLIT ´´½¨ÎҵĵÚÒ»¸ö»úÆ÷ÈË£¬µ«×ÜÊÇ´íÎó Discord.JS)
How do I code event/command handlers for my Discord.js bot?(ÈçºÎΪÎÒµÄ Discord.js »úÆ÷È˱àдʼþ/ÃüÁî´¦Àí³ÌÐò?)
How to find a User ID from a Username in Discord.js?(ÈçºÎ´Ó Discord.js ÖеÄÓû§ÃûÖвéÕÒÓû§ ID?)