Skip to content
Components & Interactions deleteComponent

$deleteComponent — Deletes a message component with given custom id

Deletes a message component with given custom id

Syntax

$deleteComponent[customID]

Parameters

  • customID (id, required) — The component’s custom id to delete

Return Value

  • String.

Usage

$deleteComponent[customID] → result

Example

$addButton[yes;a;Ok;primary]$addButton[no;b;No;secondary]$deleteComponent[a]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.