create_container
Function
Container (type 17): the card grouping components V2. A string becomes a text block.
from discord_interactions import create_containerSignature
def create_container( *components: Any, accent_color: int | None = None, spoiler: bool = False, component_id: int | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
*components | Any | ||
accent_color | int | None | None | Border color as an RGB integer (0x5865F2). |
spoiler | bool | False | Hidden until clicked. |
component_id | int | None | None |
Returns
Dict[str, Any]