Discord JS // Trying to add role by reacting to the message
问题 bot.on('messageReactionAdd', async (reaction, user) => { // Define the emoji user add let role = message.guild.roles.find(role => role.name === 'Alerts'); if (message.channel.name !== 'alerts') return message.reply(':x: You must go to the channel #alerts'); message.member.addRole(role); }); Thats the part of my bot.js. I want the user to react in a certain channel and receive role Alerts 回答1: You haven't really stated what the problem is, what works and what doesn't work but I'll take a wild