mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 10:43:30 +00:00
discord: Add StringOption Min/MaxLength
This commit is contained in:
parent
eb23d43cee
commit
e5aabda660
|
@ -447,6 +447,8 @@ type StringOption struct {
|
||||||
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
|
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
|
||||||
Required bool `json:"required"`
|
Required bool `json:"required"`
|
||||||
Choices []StringChoice `json:"choices,omitempty"`
|
Choices []StringChoice `json:"choices,omitempty"`
|
||||||
|
MinLength option.Int `json:"min_length,omitempty"`
|
||||||
|
MaxLength option.Int `json:"max_length,omitempty"`
|
||||||
// Autocomplete must not be true if Choices are present.
|
// Autocomplete must not be true if Choices are present.
|
||||||
Autocomplete bool `json:"autocomplete"`
|
Autocomplete bool `json:"autocomplete"`
|
||||||
// LocalizedOptionName is only populated when this is received from
|
// LocalizedOptionName is only populated when this is received from
|
||||||
|
|
Loading…
Reference in a new issue