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

261
Vistas
Discord.js interaction won't update

I have a message with 3 buttons and I want to disable all 3 of the buttons after they have been clicked.

handle: async function(interaction) {

        interaction.deferUpdate();

        let components = interaction.message.components[0].components.forEach(c => {
            c.setDisabled(true)
        })

        await interaction.message.edit({embeds: interaction.message.embeds, components: components})
        // Do some other stuff
}

I have tried it with 

interaction.update()

and multiple other ways but i can't get it to work.
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

After you deferred your reply with .deferReply() or .deferUpdate() you need to use .editReply()

Code @ discordjs.guide

collector.on('collect', async i => {
    if (i.customId === 'primary') {
        await i.deferUpdate();
        await wait(4000);
        await i.editReply({ content: 'A button was clicked!', components: [] });
    }
});
about 4 years ago · Santiago Trujillo 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