Skip to content

Commit

Permalink
fixed ApplicationCommandOptionChoice Name field name
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jul 2, 2022
1 parent 7ed69d1 commit 721935c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/application_command_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ type ApplicationCommandOptionChoice interface {
var _ ApplicationCommandOptionChoice = (*ApplicationCommandOptionChoiceInt)(nil)

type ApplicationCommandOptionChoiceInt struct {
OptionName string `json:"name"`
Name string `json:"name"`
NameLocalizations map[Locale]string `json:"name_localizations,omitempty"`
Value int `json:"value"`
}
Expand All @@ -469,7 +469,7 @@ func (ApplicationCommandOptionChoiceInt) applicationCommandOptionChoice() {}
var _ ApplicationCommandOptionChoice = (*ApplicationCommandOptionChoiceString)(nil)

type ApplicationCommandOptionChoiceString struct {
OptionName string `json:"name"`
Name string `json:"name"`
NameLocalizations map[Locale]string `json:"name_localizations,omitempty"`
Value string `json:"value"`
}
Expand All @@ -479,7 +479,7 @@ func (ApplicationCommandOptionChoiceString) applicationCommandOptionChoice() {}
var _ ApplicationCommandOptionChoice = (*ApplicationCommandOptionChoiceInt)(nil)

type ApplicationCommandOptionChoiceFloat struct {
OptionName string `json:"name"`
Name string `json:"name"`
NameLocalizations map[Locale]string `json:"name_localizations,omitempty"`
Value float64 `json:"value"`
}
Expand Down

0 comments on commit 721935c

Please sign in to comment.