All tools / Commands
Modal and text input limit checker
Validate a modal callback: title 45, custom_id 100, 1-5 components, and text input length bounds.
Result
Type 9, then a Label
Opening a modal is interaction callback type 9. title is at most 45 characters and custom_id is 1-100. components holds 1 to 5 entries. Put each text input (type 4) inside a Label (type 18); an Action Row of text inputs is deprecated. Label text is at most 45 characters and the description at most 100. Text input min_length is 0-4000, max_length is 1-4000, value is at most 4000, and placeholder is at most 100. Style 1 is a single line and style 2 is a paragraph. custom_id values must be unique.
Related: Interaction response type picker · Component custom_id and limits checker