Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
Discord.js V13: ¿Cómo editar el objeto de interacción del mensaje?

Estoy tratando de actualizar mi bot de discord a la nueva versión de discord.js (v13). Tengo un mensaje con una inserción y dos botones, uno para la página anterior y otro para la página siguiente. Cuando un usuario hace clic en un botón, intento editar la inserción para mostrar otra cosa. Pero luego obtengo un

TypeError: interacción.mensaje.edit() no es una función.

Puedo imprimir el mensaje de interaction.message y muestra el mensaje Objeto, pero no se puede llamar a la función. Estoy usando el evento interactionCreate .

¡Gracias por adelantado!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puedes usar el método interaction.update() :

 // 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!