create_label_component
Function
Label (type 18): title and description around a modal field. The modern format recommended by Discord.
from discord_interactions import create_label_componentAliases create_label
Signature
def create_label_component( label: str, description: str | None = None, component: Any | None = None, component_id: int | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
label | str | required | Field title (45 characters max). |
description | str | None | None | Help text under the title (100 characters max). |
component | Any | None | None | Wrapped field: text input, select, radio group, checkboxes, checkbox or file upload. |
component_id | int | None | None |
Returns
Dict[str, Any]