discordjs react to message code example
Example: how to test on user reaction discord.js
client.on('messageReactionAdd', (reaction, user) => {
console.log('a reaction has been added');
});
client.on('messageReactionAdd', (reaction, user) => {
console.log('a reaction has been added');
});