create_modal
Function
Complete modal as a dict. Bare fields are wrapped in a Label automatically.
from discord_interactions import create_modalSignature
def create_modal( custom_id: str, title: str, *components: Any, strict_text_inputs: bool = False,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
custom_id | str | required | Identifier sent back on submit. |
title | str | required | Window title (45 characters max). |
*components | Any | ||
strict_text_inputs | bool | False | Legacy format: keep text inputs only. |
Returns
Dict[str, Any]