K
Docs
API Reference→Pieces→Remove the Buttons
🧽

Remove the Buttons

ui.clearThe Control PanelControls

Takes 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.

🧽
Remove the Buttons
ui.clear
Controls
output
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: [] });