Skip to content
Components & Interactions addActionRowTo

$addActionRowTo — Adds an action row (or rows) to a message

Adds an action row (or rows) to a message

Syntax

$addActionRowTo[channelID;messageID;components;(keepexistingrows)]

Parameters

  • channelID (id, required) — The channel id to pull message from
  • messageID (id, required) — The message to add row to
  • components (text, required) — Components for this row
  • keepexistingrows (boolean, optional) — Whether to keep or remove existing rows of given message

Return Value

  • Boolean.

Usage

$addActionRowTo[channelID;messageID;components;(keepexistingrows)] → result

Example

$sendMessage[$addActionRowTo[30;1001;$addButton[yes;ok;Ok;primary]]]

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.