components_v2_build_section
Build a Discord card-style Section component with 1-3 text lines and a required thumbnail or button accessory. Use for header, supporting text, and image in messages.
Instructions
Purpose: Build a Components V2 Section (type 9) - 1-3 TextDisplay lines plus a REQUIRED Thumbnail or Button accessory (Discord rejects a Section without one).
When to use: card-like content with header + supporting text + image.
Returns: {component} - Section JSON node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 1-3 markdown text lines | |
| accessory | Yes | Required Thumbnail (type 11) or Button (type 2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||