From 32c5a0cec149b8a21529efab40a8cbdfad4cf959 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 14 Aug 2022 16:38:23 -0400 Subject: [PATCH] Change default Choice.name_localizations to an empty dict --- discord/app_commands/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/models.py b/discord/app_commands/models.py index 005dbafb9..b88add19d 100644 --- a/discord/app_commands/models.py +++ b/discord/app_commands/models.py @@ -437,7 +437,7 @@ class Choice(Generic[ChoiceT]): self.name: str = name self._locale_name: Optional[locale_str] = locale self.value: ChoiceT = value - self.name_localizations: Dict[Locale, str] = MISSING + self.name_localizations: Dict[Locale, str] = {} @classmethod def from_dict(cls, data: ApplicationCommandOptionChoice) -> Choice[ChoiceT]: