components_v2_build_container
Build a Discord Components V2 container JSON node (type 17) with accent color and child sections. Returns a component node for use in components_v2_send.
Instructions
Purpose: Build a Components V2 Container (type 17) JSON node ready to nest into components_v2_send.
When to use: compose a card with accent color + multiple sections/separators.
Returns: {component} - the JSON node. Pass it inside the components array of components_v2_send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spoiler | No | Wrap container in spoiler tag | |
| components | Yes | Up to 10 child nodes (Section/TextDisplay/MediaGallery/File/Separator/ActionRow). NOT another Container. | |
| accent_color | No | Hex RGB integer (0xFF0000 = red) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||