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

Commit

Permalink
feat: add additional missing fields to ApplicationCommandOption
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Stanley <[email protected]>
  • Loading branch information
lrstanley committed May 14, 2023
1 parent 862e7dd commit 65522b0
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions application_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65522b0

Please sign in to comment.