mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +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"`
|
||||
Required bool `json:"required"`
|
||||
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 bool `json:"autocomplete"`
|
||||
// LocalizedOptionName is only populated when this is received from
|
||||
|
|
Loading…
Reference in a new issue