@@ -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