discord-interactions.py

create_modal_row

Function

Modal row in the legacy format (ActionRow + TextInput).

from discord_interactions import create_modal_row

Signature

def create_modal_row(component: Any) -> Dict[str, Any]

Parameters

NameTypeDefaultDescription
componentAnyrequired

Returns

Dict[str, Any]

Type a name: create_button, ModalBuilder, cooldown.