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

225
Vistas
Discord.js: [ object Object ]

I have been working on improving my ticket system and got into that problem: Problem

My code is:

    await button.clicker.fetch();
    if (!button.clicker.member.roles.cache.has("859507507596230736")) return button.reply.send("Only staff can close the ticket.", true)
    var embed = new Discord.MessageEmbed()
    .setTitle("Are you sure?")
    .setDescription("Are you sure you want to close this ticket?\nThis action cannot be undone.")
    .setFooter(button.guild.name)
    .setColor("RED")
    var bu1tton = new MessageButton()
      .setStyle(`red`)
      .setEmoji(`🔒`)
      .setLabel(`Proceed anyway`)
      .setID("sure")
    button.reply.send({ component: bu1tton, embed: embed }, true)
  }

After I changed button.reply.send({ component: bu1tton, embed: embed }, true) to button.channel.send({ component: bu1tton, embed: embed }) it worked perfectly, although was viewable by everyone.

I understand the problem is , true but I don't understand why? Thanks in advance.

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

0

You have to use ephemeral: true instead of }, true)

Here is the code:

button.reply.send({ component: bu1tton, embed: embed, ephemeral: true})
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