feat(ApplicationCommandOption): min and max length (#1208)
Implement min_length and max_length for string option type.
This commit is contained in:
parent
4e021d9140
commit
0feaae8f1b
1 changed files with 4 additions and 0 deletions
|
@ -118,6 +118,10 @@ type ApplicationCommandOption struct {
|
|||
MinValue *float64 `json:"min_value,omitempty"`
|
||||
// Maximum value of number/integer option.
|
||||
MaxValue float64 `json:"max_value,omitempty"`
|
||||
// Minimum length of string option.
|
||||
MinLength *int `json:"min_length,omitempty"`
|
||||
// Maximum length of string option.
|
||||
MaxLength int `json:"max_length,omitempty"`
|
||||
}
|
||||
|
||||
// ApplicationCommandOptionChoice represents a slash command option choice.
|
||||
|
|
Loading…
Reference in a new issue