Skip to content

Commit e5aabda

Browse files
twoscottdiamondburned
authored andcommitted
discord: Add StringOption Min/MaxLength
1 parent eb23d43 commit e5aabda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/command.go

+2
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ type StringOption struct {
447447
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
448448
Required bool `json:"required"`
449449
Choices []StringChoice `json:"choices,omitempty"`
450+
MinLength option.Int `json:"min_length,omitempty"`
451+
MaxLength option.Int `json:"max_length,omitempty"`
450452
// Autocomplete must not be true if Choices are present.
451453
Autocomplete bool `json:"autocomplete"`
452454
// LocalizedOptionName is only populated when this is received from

0 commit comments

Comments
 (0)