Skip to content

Commit e841b6a

Browse files
committed
PHPDocs
1 parent 2bea528 commit e841b6a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Discord/Builders/Components/StringSelect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
* @property int $type 3 for string select.
2626
* @property Option[] $options Specified choices in a select menu; max 25.
2727
* @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`.
2929
* @property ?int|null $max_values Maximum number of items that can be chosen (defaults to 1); max 25.
3030
* @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.
3232
*/
3333
class StringSelect extends SelectMenu
3434
{

src/Discord/Parts/Channel/Message/StringSelect.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @property string|null $placeholder Placeholder text if nothing is selected or default; max 150 characters
3535
* @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`.
3636
* @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).
3738
* @property bool|null $disabled Whether select menu is disabled (defaults to false). Using in a modal will result in an error.
3839
*/
3940
class StringSelect extends SelectMenu
@@ -49,6 +50,7 @@ class StringSelect extends SelectMenu
4950
'placeholder',
5051
'min_values',
5152
'max_values',
53+
'required',
5254
'disabled',
5355
];
5456

src/Discord/Parts/User/Member.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @property-read string|null $avatar_decoration The member's guild avatar decoration URL.
6767
* @property-read string|null $avatar_decoration_hash The member's guild avatar decoration hash.
6868
* @property ?AvatarDecorationData|null $avatar_decoration_data Data for the member's guild avatar decoration.
69-
* @property ?Collectibles|null $collectibles Data for the member's collectibles
69+
* @property ?Collectibles|null $collectibles Data for the member's collectibles
7070
*
7171
* @property string|null $guild_id The unique identifier of the guild that the member belongs to.
7272
* @property-read Guild|null $guild The guild that the member belongs to.

0 commit comments

Comments
 (0)