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.