Skip to content

Commit f756fb4

Browse files
authored
feat: add min_length & max_length to Option (#955)
1 parent 87e938b commit f756fb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interactions/client/models/command.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ class Option(DictSerializerMixin):
103103
:ivar Optional[List[ChannelType]] channel_types?: Restrictive shown channel types, if given.
104104
:ivar Optional[int] min_value?: The minimum value supported by the option.
105105
:ivar Optional[int] max_value?: The maximum value supported by the option.
106+
:ivar Optional[int] min_length?: The minimum length supported by the option.
107+
:ivar Optional[int] max_length?: The maximum length supported by the option.
106108
:ivar Optional[bool] autocomplete?: A status denoting whether this option is an autocomplete option.
107109
:ivar Optional[Dict[Union[str, Locale], str]] name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field.
108110
:ivar Optional[Dict[Union[str, Locale], str]] description_localizations?: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field.
@@ -122,6 +124,8 @@ class Option(DictSerializerMixin):
122124
)
123125
min_value: Optional[int] = field(default=None)
124126
max_value: Optional[int] = field(default=None)
127+
min_length: Optional[int] = field(default=None)
128+
max_length: Optional[int] = field(default=None)
125129
autocomplete: Optional[bool] = field(default=None)
126130
name_localizations: Optional[Dict[Union[str, Locale], str]] = field(
127131
default=None

0 commit comments

Comments
 (0)