• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

189
Views
Discord.JS Agrega un botón a un mensaje sin reemplazar el anterior

Quiero agregar otro botón a un mensaje existente (enviado por el bot) Probé:

 // const... log in... .... let msg = await interaction.channel.fetchMessage(interaction.options.get('message-id')) if(!msg || msg?.author?.id !== client.user.id) return interaction.reply({ content: "Error..." }) msg.edit({ embeds: ["a defined embed"], components: [row] })

Cuando edito los componentes, reemplaza el primero con el nuevo.

¿Cómo puedo agregar un nuevo botón al mensaje?

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

0

msg.edit({ embeds: ["a defined embed"], components: [msg.components[0]], row] });
about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error