From 65522b0298f0b2b6bb5d28026a1123587d81cb37 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Sun, 14 May 2023 00:09:51 -0400 Subject: [PATCH] feat: add additional missing fields to ApplicationCommandOption Signed-off-by: Liam Stanley --- application_command.go | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/application_command.go b/application_command.go index 9a4e1e6c..353bdf5f 100644 --- a/application_command.go +++ b/application_command.go @@ -23,16 +23,20 @@ type ApplicationCommandOptionChoice struct { } type ApplicationCommandOption struct { - Type OptionType `json:"type"` - Name string `json:"name"` - Description string `json:"description"` - Required bool `json:"required"` - Choices []*ApplicationCommandOptionChoice `json:"choices"` - Options []*ApplicationCommandOption `json:"options"` - ChannelTypes []ChannelType `json:"channel_types"` - MinValue float64 `json:"min_value"` - MaxValue float64 `json:"max_value"` - Autocomplete bool `json:"autocomplete"` + Type OptionType `json:"type"` + Name string `json:"name"` + NameLocalizations map[string]string `json:"name_localizations,omitempty"` + Description string `json:"description"` + DescriptionLocalizations map[string]string `json:"description_localizations,omitempty"` + Required bool `json:"required,omitempty"` + Choices []*ApplicationCommandOptionChoice `json:"choices,omitempty"` + Options []*ApplicationCommandOption `json:"options,omitempty"` + ChannelTypes []ChannelType `json:"channel_types,omitempty"` + MinValue float64 `json:"min_value,omitempty"` + MaxValue float64 `json:"max_value,omitempty"` + MinLength int `json:"min_length,omitempty"` + MaxLength int `json:"max_length,omitempty"` + Autocomplete bool `json:"autocomplete,omitempty"` } type ApplicationCommandDataOption struct {