You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Discord/Builders/Components/StringSelect.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,10 @@
25
25
* @property int $type 3 for string select.
26
26
* @property Option[] $options Specified choices in a select menu; max 25.
27
27
* @property ?string|null $placeholder Placeholder text if nothing is selected or default; max 150 characters.
28
-
* @property ?int|null $min_values Minimum number of items that must be chosen (defaults to 1); min 0, max 25.
28
+
* @property ?int|null $min_values Minimum number of items that must be chosen (defaults to 1); min 0, max 25. Must be either omitted or at least `1` if `required` is omitted or `true`.
29
29
* @property ?int|null $max_values Maximum number of items that can be chosen (defaults to 1); max 25.
30
30
* @property ?bool|null $required Whether the string select is required to answer in a modal (defaults to true).
31
-
* @property ?bool|null $disabled Whether select menu is disabled in a message (defaults to false).
31
+
* @property ?bool|null $disabled Whether select menu is disabled in a message (defaults to false). Using in a modal will result in an error.
Copy file name to clipboardExpand all lines: src/Discord/Parts/Channel/Message/StringSelect.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@
34
34
* @property string|null $placeholder Placeholder text if nothing is selected or default; max 150 characters
35
35
* @property int|null $min_values Minimum number of items that must be chosen (defaults to 1); min 0 (1), max 25. Must be either omitted or at least `1` if `required` is omitted or `true`.
36
36
* @property int|null $max_values Maximum number of items that can be chosen (defaults to 1); max 25.
37
+
* @property bool|null $required Whether the string select is required to answer in a modal (defaults to true).
37
38
* @property bool|null $disabled Whether select menu is disabled (defaults to false). Using in a modal will result in an error.
38
39
*/
39
40
class StringSelect extends SelectMenu
@@ -49,6 +50,7 @@ class StringSelect extends SelectMenu
0 commit comments