Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
discord.js v12 verification system with reactions

I'm trying to make a verification system for my server, but I can't get it to work.
I want the users to react with an emoji to a message (embed) and then they get a role added.

    async execute(client, message, args) {
        const channel = '890657345145823252';
        const verifyrole = message.guild.roles.cache.find(role => role.id === '906506388598054922');

        const verifyemoji ='✅';

        let embed = new Discord.MessageEmbed()
        .setTitle(`**React here!**`)
        .setDescription('React here to get access to the Server!\n\n'
        + ` react with: ${verifyemoji} `);

        let MessageEmbed = await message.channel.send(embed);
        MessageEmbed.react(verifyemoji);

        client.on('messageReactionAdd', async(reaction, user) => {
            if(reaction.message.partial) await reaction.message.fetch();
            if(reaction.partial) await reaction.fetch();
            if(user.bot) return;

                if(reaction.message.channel.id == channel) {
                    if(reaction.emoji.name === verifyemoji) {
                        await reaction.message.guild.members.cache.get(user.id).roles.add(verifyrole);
                    }
                
                } else {
                    return;
                }
        })
    }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda