I'm pretty new to javascript and discord.js, can anyone help me and tell me how I can set the role of the user that reacted? I've been having trouble doing this myself.
client.on('messageReactionAdd', async (reaction, user) => {
if (reaction.message.partial) await reaction.message.fetch();
if (reaction.message.id === '755695010657206323') {
switch (reaction.emoji.id) {
case '753885482298900510':
break;
}
}
});