'Do something when a specified user react discord.js

Hello i have a marry command and i want to do a reaction verify, when the tagged person reacts with ✅ do the actions i add there. I can't find a solution, tried already couple of times with different methods. I m a begginer with codding, thx.

this are the actions i want to do after nume2 message.mentions.members.first() reacts with the check.

message.member.roles.add(message.member.guild.roles.cache.get(config2.casatorit)) //add marry role to author
users.roles.add(message.member.guild.roles.cache.get(config2.casatorit)) //add marry role to @person
users.setNickname(`${nume2} + ${nume1}`) //set name to @person
message.member.setNickname(`${nume1} + ${nume2}`) //setname to author


Solution 1:[1]

If you can share your code maybe i could help you better but simpliest way to filter user in awaitReactions or createReactionCollector is;

const filter = (emoji, user) => user.id === 'some user id';
awaitReactions({filter, max: 1, time: 15000})
createReactionCollector({filter, max:1, time:15000})

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Neenhila