Browse Source

Fix auto_locale_strings when no choices are given

pull/8314/head
Rapptz 3 years ago
parent
commit
842d6b4fbb
  1. 1
      discord/app_commands/transformers.py

1
discord/app_commands/transformers.py

@ -185,6 +185,7 @@ class CommandParameter:
if isinstance(self.description, str):
self.description = locale_str(self.description)
if self.choices:
for choice in self.choices:
if choice._locale_name is None:
choice._locale_name = locale_str(choice.name)

Loading…
Cancel
Save