GitHub

API reference for Submit.

A submit as a modal's handler receives it: metadata decoded, values one per input decoded (None for an optional input left empty, none for text), message_id None when a command opened the modal.

Attributes

AttributeTypeDescription
idstr
metadataM_co
valuesMapping[str, Any]
threadChatThread
message_idstr | None
user_idstr
rawJsonValue

Functions

__init__

__init__(*, id, metadata, values, thread, message_id, user_id, raw) -> None
ParameterTypeDescription
idstr
metadataM_co
valuesMapping[str, Any]
threadChatThread
message_idstr | None
user_idstr
rawJsonValue