Search
 
SCRIPT & CODE EXAMPLE
 

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);
    
} 
Comment

PREVIOUS NEXT
Code Example
Javascript :: Html2Canvas screenshot and download 
Javascript :: mui switch colours 
Javascript :: how to use secondary color in material ui useStyle 
Javascript :: input in javascript 
Javascript :: js url 
Javascript :: jquery get radio checked value 
Javascript :: .sort javascript 
Javascript :: async in useeffect 
Javascript :: base 64 in js 
Javascript :: javascript style onclick 
Javascript :: How to check if array includes a value from another array in JavaScript 
Javascript :: unrecognized font family fontawesome react native ios 
Javascript :: async await useeffect react 
Javascript :: Properly upgrade node using nvm 
Javascript :: first and last char vowel reg exp same char 
Javascript :: jquery reload iframe 
Javascript :: array to excel javascript 
Javascript :: column.footer jquery 
Javascript :: javascript remove single class from element 
Javascript :: disable scroll on modal open 
Javascript :: json enum string 
Javascript :: convert elements to array javascript 
Javascript :: addclass to elementref angular 
Javascript :: how to limit input type max length 
Javascript :: react native image blur 
Javascript :: viewchild for ngfor 
Javascript :: decode morse code js 
Javascript :: jquery $(document.on click 
Javascript :: zoho smtp mail nodejs 
Javascript :: javascript to remove duplicates from an array 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =