Skip to content

Action Row

type: 1 Messages

The Action Row is a horizontal row of interactive components. It can hold:

  • 1 to 5 buttons, or
  • a single select menu.
Preview
My BotAPPToday at 12:00 PM

What would you like to do?

Pick your language
payload.json
{
"flags": 32768,
"components": [
{
"type": 10,
"content": "What would you like to do?"
},
{
"type": 1,
"components": [
{
"type": 2,
"style": 1,
"label": "Accept",
"custom_id": "accept"
},
{
"type": 2,
"style": 2,
"label": "Later",
"custom_id": "later"
},
{
"type": 2,
"style": 4,
"label": "Decline",
"custom_id": "decline"
}
]
},
{
"type": 1,
"components": [
{
"type": 3,
"custom_id": "language",
"placeholder": "Pick your language",
"options": [
{
"label": "Español",
"value": "es",
"emoji": {
"name": "🇪🇸"
}
},
{
"label": "English",
"value": "en",
"emoji": {
"name": "🇬🇧"
}
}
]
}
]
}
]
}
Field Type Description
type integer required Always 1.
id integer optional Unique identifier in the message.
components array required Up to 5 Buttons or 1 select menu.

Use the JSON above as the message body.

  • Put the most important button first and use only one Primary button per row.
  • If you need more than 5 buttons, use several rows or consider a select menu.
  • In V2, rows can go inside a Container, not just at the bottom of the message.