Skip to content

Commit 6c7bc2d

Browse files
authored
docs: update/fix docstrings of select menus
Signed-off-by: Astrea <[email protected]>
1 parent 6cccfdc commit 6c7bc2d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

interactions/models/discord/components.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class BaseSelectMenu(InteractiveComponent):
365365
min_values Optional[int]: The minimum number of items that must be chosen. (default 1, min 0, max 25)
366366
max_values Optional[int]: The maximum number of items that can be chosen. (default 1, max 25)
367367
disabled bool: Disable the select and make it not intractable, default false.
368-
type Union[ComponentType, int]: The action role type number defined by discord. This cannot be modified.
368+
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
369369
required bool: Whether this select menu is required to be filled out or not in modals.
370370
371371
"""
@@ -590,7 +590,7 @@ class StringSelectMenu(BaseSelectMenu):
590590
min_values Optional[int]: The minimum number of items that must be chosen. (default 1, min 0, max 25)
591591
max_values Optional[int]: The maximum number of items that can be chosen. (default 1, max 25)
592592
disabled bool: Disable the select and make it not intractable, default false.
593-
type Union[ComponentType, int]: The action role type number defined by discord. This cannot be modified.
593+
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
594594
required bool: Whether this select menu is required to be filled out or not in modals.
595595
596596
"""
@@ -656,7 +656,7 @@ class UserSelectMenu(DefaultableSelectMenu):
656656
custom_id str: A developer-defined identifier for the select, max 100 characters.
657657
default_values list[BaseUser, Member, SelectDefaultValues]: A list of default values to pre-select in the select.
658658
disabled bool: Disable the select and make it not intractable, default false.
659-
type Union[ComponentType, int]: The action role type number defined by discord. This cannot be modified.
659+
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
660660
required bool: Whether this select menu is required to be filled out or not in modals.
661661
662662
"""
@@ -705,7 +705,7 @@ class RoleSelectMenu(DefaultableSelectMenu):
705705
custom_id str: A developer-defined identifier for the select, max 100 characters.
706706
default_values list[Role, SelectDefaultValues]: A list of default values to pre-select in the select.
707707
disabled bool: Disable the select and make it not intractable, default false.
708-
type Union[ComponentType, int]: The action role type number defined by discord. This cannot be modified.
708+
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
709709
required bool: Whether this select menu is required to be filled out or not in modals.
710710
711711
"""
@@ -754,6 +754,7 @@ class MentionableSelectMenu(DefaultableSelectMenu):
754754
default_values list[BaseUser, Role, BaseChannel, Member, SelectDefaultValues]: A list of default values to pre-select in the select.
755755
disabled bool: Disable the select and make it not intractable, default false.
756756
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
757+
required bool: Whether this select menu is required to be filled out or not in modals.
757758
758759
"""
759760

@@ -804,6 +805,7 @@ class ChannelSelectMenu(DefaultableSelectMenu):
804805
default_values list[BaseChannel, SelectDefaultValues]: A list of default values to pre-select in the select.
805806
disabled bool: Disable the select and make it not intractable, default false.
806807
type Union[ComponentType, int]: The type of component, as defined by discord. This cannot be modified.
808+
required bool: Whether this select menu is required to be filled out or not in modals.
807809
808810
"""
809811

0 commit comments

Comments
 (0)