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

78
Vistas
Send message including button

I am using Discord.js v13.2. I need to send a message once ready. I am able to send a text message, but the button does not appear, so I guess I am not sending the parameter correctly.

client.once("ready", async () => {
  const button = new MessageButton()
    .setLabel("Go To Site")
    .setStyle("blue")
    .setCustomId("btn-go-to-site");

  const helpChannel = await client.channels.fetch(channelID);
  helpChannel.send('Welcome to Site', button);
});
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Discord.js v13 now only accepts 1 parameter in message sending, editing and replying. You must send the message with the content and components parameters.

helpChannel.send({
  content: "Welcome to Site",
  components: [
    new MessageActionRow().addComponents([button])
  ]
})

This must also be done with embeds, files, stickers and other message options

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