Skip to content

Commit

Permalink
feat(ApplicationCommandOption): min and max length (#1208)
Browse files Browse the repository at this point in the history
Implement min_length and max_length for string option type.
  • Loading branch information
FedorLap2006 committed Jul 14, 2022
1 parent 4e021d9 commit 0feaae8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interactions.go
Expand Up @@ -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.
Expand Down

0 comments on commit 0feaae8

Please sign in to comment.