create_section
Function
Section (type 9): 1 to 3 texts with an accessory, button or thumbnail.
from discord_interactions import create_sectionSignature
def create_section( *texts: Any, accessory: Any, component_id: int | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
*texts | Any | ||
accessory | Any | required | Button or thumbnail shown on the right. |
component_id | int | None | None |
Returns
Dict[str, Any]