mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Change default Choice.name_localizations to an empty dict
This commit is contained in:
parent
e2d5791b67
commit
32c5a0cec1
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user