|
@@ -94,6 +94,7 @@ type ApplicationCommandOption struct {
|
|
|
// NOTE: This feature was on the API, but at some point developers decided to remove it.
|
|
|
// So I commented it, until it will be officially on the docs.
|
|
|
// Default bool `json:"default"`
|
|
|
+
|
|
|
ChannelTypes []ChannelType `json:"channel_types"`
|
|
|
Required bool `json:"required"`
|
|
|
Options []*ApplicationCommandOption `json:"options"`
|
|
@@ -101,6 +102,10 @@ type ApplicationCommandOption struct {
|
|
|
// NOTE: mutually exclusive with Choices.
|
|
|
Autocomplete bool `json:"autocomplete"`
|
|
|
Choices []*ApplicationCommandOptionChoice `json:"choices"`
|
|
|
+ // Minimal value of number/integer option.
|
|
|
+ MinValue *float64 `json:"min_value,omitempty"`
|
|
|
+ // Maximum value of number/integer option.
|
|
|
+ MaxValue float64 `json:"max_value,omitempty"`
|
|
|
}
|
|
|
|
|
|
// ApplicationCommandOptionChoice represents a slash command option choice.
|