I need help applying functions to my discord bot.

Here is the code block for the function of confirm:

 if (confirmation.customId === 'confirm') {
                        
                          await confirmation.update({
                            embeds: [{
                              title: 'Lockdown confirmed!',
                              description: `The lockdown will commence in 5 seconds.`,
                              color: '15548997',
                            }],
                            ephemeral: true,
                            components: [],
                          },);
                          
                      } 


i need a way to remove the sendmessage permissions of the role 1171206894799552622 of certain channels, if someone could write the code it'd be great, the id's are below.

1174066163941126215, 1174066275618664560, 1174066357797658764, 1174066422637408396
Was this page helpful?