Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit a6423e1

Browse files
committed
feat: add additional missing fields to ApplicationCommandOption
Signed-off-by: Liam Stanley <me@liamstanley.io>
1 parent 862e7dd commit a6423e1

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

application_command.go

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@ type ApplicationCommandOptionChoice struct {
2323
}
2424

2525
type ApplicationCommandOption struct {
26-
Type OptionType `json:"type"`
27-
Name string `json:"name"`
28-
Description string `json:"description"`
29-
Required bool `json:"required"`
30-
Choices []*ApplicationCommandOptionChoice `json:"choices"`
31-
Options []*ApplicationCommandOption `json:"options"`
32-
ChannelTypes []ChannelType `json:"channel_types"`
33-
MinValue float64 `json:"min_value"`
34-
MaxValue float64 `json:"max_value"`
35-
Autocomplete bool `json:"autocomplete"`
26+
Type OptionType `json:"type"`
27+
Name string `json:"name"`
28+
NameLocalizations map[string]string `json:"name_localization,omitempty"`
29+
Description string `json:"description"`
30+
DescriptionLocalizations map[string]string `json:"description_localization,omitempty"`
31+
Required bool `json:"required"`
32+
Choices []*ApplicationCommandOptionChoice `json:"choices"`
33+
Options []*ApplicationCommandOption `json:"options"`
34+
ChannelTypes []ChannelType `json:"channel_types"`
35+
MinValue float64 `json:"min_value,omitempty"`
36+
MaxValue float64 `json:"max_value,omitempty"`
37+
MinLength int `json:"min_length,omitempty"`
38+
MaxLength int `json:"max_length,omitempty"`
39+
Autocomplete bool `json:"autocomplete"`
3640
}
3741

3842
type ApplicationCommandDataOption struct {

0 commit comments

Comments
 (0)