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

416
Vistas
crear un canal de texto en la reacción del mensaje (límite a mensaje específico o canal específico)

(nodo: 19040) UnhandledPromiseRejectionWarning: TypeError: No se puede leer la propiedad 'gremio' de undefined en el Cliente. (C:\Usuarios\admin\Escritorio\Commendbot\app.js:90:30)

 bot.on("messageReactionAdd", async (reaction, user, message) => { //Add an event listener if (reaction.message.partial) await reaction.message.fetch(); const channels = message.guild.channels.cache channels.find(channel => channel.name === 'createchannel') if (user.id === client.user.id) return; //If the reaction was from the bot, return if (!reaction.message.guild) return; //If the reaction was not in a guild if (reaction.emoji.name === "👍") { let guild = reaction.message.guild guild.channels.create(`channel-${user.id}`, { //Creating the channel type: 'text', //Make sure the channel is type is text permissionOverwrites: [ //Set overwrites { id: guild.id, allow: ['VIEW_CHANNEL'], }] }) }

});

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

messageReactionAdd solo da 2 objetos:MessageReaction y User . Puedes obtener el mensaje de la reacción.

 const channels = reaction.message.guild.channels.cache
about 4 years ago · Juan Pablo Isaza Denunciar
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