From 721935c49eb2fd0abeaa2cdacce891495e2c4247 Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Sun, 3 Jul 2022 01:15:41 +0200 Subject: [PATCH] fixed ApplicationCommandOptionChoice Name field name --- discord/application_command_option.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/application_command_option.go b/discord/application_command_option.go index 5533074d..1b70f388 100644 --- a/discord/application_command_option.go +++ b/discord/application_command_option.go @@ -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"` } @@ -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"` } @@ -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"` }