Browse Source

Fix EnumNameTransformer passing values

pull/8294/head
Rapptz 3 years ago
parent
commit
13c725f183
  1. 2
      discord/app_commands/transformers.py

2
discord/app_commands/transformers.py

@ -441,7 +441,7 @@ class EnumNameTransformer(Transformer):
raise TypeError(f'enum.Enum requires at least two values.')
self._enum: Any = enum
self._choices = [Choice(name=v.name, value=v.value) for v in values]
self._choices = [Choice(name=v.name, value=v.name) for v in values]
@property
def _error_display_name(self) -> str:

Loading…
Cancel
Save