Send Message

Send Message

Reply, post to a channel, or DM the user (embed optional)

Note: Capped at 3 sends per command run. Every component's key must resolve to either a button/select trigger's actionKey or a later wait_for_input.key in the same tree.

Fields

FieldTypeRequiredDescription
targetobject {kind: 'reply' | 'channel' | 'dm', channelRef?, userRef?}yesWhere to send the message. channelRef/userRef can be a literal id or resolved from a variable at runtime.
ephemeralbooleannoDiscord ephemeral flag.
contentstringnoMessage text; supports {variable} interpolation.
embedobjectnotitle, description, color, footer, thumbnail, image, fields[] — interpolated.
componentsarray of button/select rowsnoUp to 5 rows; a row is either up to 5 buttons or exactly 1 select, never both.
suppressNotificationsbooleannoSuppresses push notifications for this message.

Example

{
  "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
  "type": "send",
  "target": {
    "kind": "reply"
  },
  "ephemeral": false,
  "content": "Hello USER.USERNAME!"
}

Did this page help you?