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?
msg.edit({ embeds: ["a defined embed"], components: [msg.components[0]], row] });