1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00

discord: Add StringOption Min/MaxLength

This commit is contained in:
twoscott 2022-11-19 18:02:29 +00:00 committed by diamondburned
parent eb23d43cee
commit e5aabda660

View file

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