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

227
Vistas
Discord.js V13: How to edit Message Object of Interaction?

I am trying to update my discord bot to the new version of discord.js (v13). I have a message with an embed and two buttons, one for previous Page and one for next page. When a user clicks a button, I am trying to edit the embed to show something else. But then I get a

TypeError: interaction.message.edit() is not a function.

I can print out the interaction.message and it shows the message Object, but the function can not be called. I am using the interactionCreate event.

Thanks in advance!

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

0

You can use the interaction.update() method:

// send a message

message.channel.send({ embeds: [embed], components: [buttons] })

/*
listen for the "interactionCreate" event or use any other method
of detecting an interaction like interaction collectors or awaitMessageComponent 
*/

client.on("interactionCreate", (interaction) => {
    interaction.update({ embeds: [aDifferentEmbed] })
})
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