Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js verify

   client.on('messageReactionAdd', async (reactionReaction, user) => {
   
   const message = reactionReaction.message;
   const verifyChannel = message.guild.channels.cache.find(c => c.name === 'approvazione');
   const member = message.guild.members.cache.get(user.id);
   if (member.user.bot) return;
   const verify = message.guild.roles.cache.get('728000975046180988');
   

   if (reactionReaction.emoji.name === '✅' && message.channel.id === verifyChannel.id) {
    member.roles.add(verify).catch(console.error);
   await reactionReaction.remove(member).catch(console.error);
    
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #verify
ADD COMMENT
Topic
Name
1+4 =