Disabling Components

const buttonRow = new ActionRowBuilder()
  .addComponents(
     new ButtonBuilder()
        .setLabel('NextFact')
        .setCustomId('nxtfact')
        .setStyle(ButtonStyle.Success),
  )

Set This Disabled After Sending.
This Below Code Not Working.

i.update({ components: [buttonRow.components[0].setDisabled(true)] })
Was this page helpful?