🧽
Remove the Buttons
ui.clearThe Control PanelControlsTakes every button and dropdown off the message, leaving the text behind. Good for one-shot prompts that shouldn't linger.
When to use this
- →Pair with Update the Message when you want to change the text at the same time
On the canvas
This is what Remove the Buttons looks like when you place it on your flow. Each field below is something you configure in the inspector panel.
🧽Controls
Remove the Buttons
ui.clearoutput
error
Output ports
outputButtons removed
errorCouldn't edit that message
📐
In TypeScript, this would be…
Not something you need to write — just a look at what Kitcord does for you.
TypeScript
// An explicit empty array is what removes them
await interaction.update({ components: [] });More Controls pieces