@@ -3,6 +3,7 @@ Used to send a modal, it must be used inside interaction like button/menu/slash
33#### Usage: ` $modal[Input] `
44
55** Input** will accept this format:
6+
67```
78{title=The modal title}
89{id=The modal id}
@@ -51,20 +52,58 @@ Used to send a modal, it must be used inside interaction like button/menu/slash
5152 {selected_role=ID} // Prefilled role ID for mention menus
5253}
5354
55+ {input=
56+ {name=Radio Group Name}
57+ {type=radio}
58+ {id=radio id}
59+ {subtitle=Radio subtitle (description)}
60+ {required=yes/no}
61+
62+ {option=Option 1}
63+ {value=option_1_id}
64+
65+ {option=Option 2}
66+ {value=option_2_id}
67+ }
68+
69+ {input=
70+ {name=Checkbox Group Name}
71+ {type=checkbox}
72+ {id=checkbox id}
73+ {subtitle=Checkbox subtitle (description)}
74+ {required=yes/no}
75+ {min=Minimum required choices (0-10)}
76+ {max=Maximum allowed choices (1-10)}
77+
78+ {option=Option 1}
79+ {value=option_1_id}
80+
81+ {option=Option 2}
82+ {value=option_2_id}
83+ }
84+
5485```
86+
5587#### Notes on input properties:
88+
5689##### ** required**
57- must be ` yes ` or ` no ` , the default is ` yes ` <br\>
90+
91+ must be ` yes ` or ` no ` , the default is ` yes ` <br >
5892
5993##### ** type**
94+
6095Specifies the input type for the input.
96+
6197* ** ` short ` (Default):** A single-line text input field.
6298* ** ` long ` :** A multi-line text area for longer responses.
6399* ** ` menu/user/role/mention/channel ` :** A dropdown selection menu instead of a text field.
64100* ** ` attachment/attach ` :** A file upload input field.
101+ * ** ` radio ` :** A multiple choice list where only ** one** item can be selected (Min 2 options, Max 10).
102+ * ** ` checkbox ` :** A multiple choice list where ** several** items can be checked (Min 1 option, Max 10).
65103
66104#### Max Amount of Inputs
67- You can include multiple input fields, up to a maximum of 5 total (for example: 3 text inputs and 2 selection menus).
105+
106+ You can include multiple input fields, up to a maximum of 5 total (for example: 2 text inputs, 1 attachment input, and 2 radio/checkbox fields).
68107
69108### Example
70109#### Code
0 commit comments