@@ -567,10 +567,10 @@ class SlashCommandOption:
567
567
max_value: Optional[Union[:class:`int`, :class:`float`]]
568
568
If the :attr:`option_type` is one of :attr:`~OptionType.integer` or :attr:`~OptionType.number`
569
569
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 ``)
574
574
channel_types: Optional[List[Union[:class:`abc.GuildChannel`, :class:`ChannelType`, :class:`int`]]]
575
575
A list of :class:`ChannelType` or the type itself like ``TextChannel`` or ``StageChannel`` the user could select.
576
576
Only valid if :attr:`~SlashCommandOption.option_type` is :attr:`~OptionType.channel`.
@@ -595,8 +595,8 @@ def __init__(self,
595
595
autocomplete : bool = False ,
596
596
min_value : Optional [Union [int , float ]] = None ,
597
597
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 ,
600
600
channel_types : Optional [List [Union [type (GuildChannel ), ChannelType , int ]]] = None ,
601
601
default : Optional [Any ] = None ,
602
602
converter : Optional ['Converter' ] = None ,
0 commit comments