Skip to content

Commit 8045842

Browse files
committed
feat(docs): Added max value for min_length and max_length
1 parent 75489b0 commit 8045842

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

discord/application_commands.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@ class SlashCommandOption:
567567
max_value: Optional[Union[:class:`int`, :class:`float`]]
568568
If the :attr:`option_type` is one of :attr:`~OptionType.integer` or :attr:`~OptionType.number`
569569
this is the maximum value the users input could be of.
570-
min_length: :class:`int`
571-
If the :attr:`option_type` is :attr:`~OptionType.string`, this is the minimum length (min. of ``0``)
572-
max_length: :class:`int`
573-
If the :attr:`option_type` is :attr:`~OptionType.string`, this is the maximum length (min. of ``1``)
570+
min_length: Optional[:class:`int`]
571+
If the :attr:`option_type` is :attr:`~OptionType.string`, this is the minimum length (minimum of ``0``, maximum of ``6000``)
572+
max_length: Optional[:class:`int`]
573+
If the :attr:`option_type` is :attr:`~OptionType.string`, this is the maximum length (minimum of ``1``, maximum of ``6000``)
574574
channel_types: Optional[List[Union[:class:`abc.GuildChannel`, :class:`ChannelType`, :class:`int`]]]
575575
A list of :class:`ChannelType` or the type itself like ``TextChannel`` or ``StageChannel`` the user could select.
576576
Only valid if :attr:`~SlashCommandOption.option_type` is :attr:`~OptionType.channel`.
@@ -595,8 +595,8 @@ def __init__(self,
595595
autocomplete: bool = False,
596596
min_value: Optional[Union[int, float]] = None,
597597
max_value: Optional[Union[int, float]] = None,
598-
min_length: int = None,
599-
max_length: int = None,
598+
min_length: Optional[int] = None,
599+
max_length: Optional[int] = None,
600600
channel_types: Optional[List[Union[type(GuildChannel), ChannelType, int]]] = None,
601601
default: Optional[Any] = None,
602602
converter: Optional['Converter'] = None,

0 commit comments

Comments
 (0)