From 13c725f1836168eca97a5e51180625a32f3eb2cc Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 2 Aug 2022 11:02:30 -0400 Subject: [PATCH] Fix EnumNameTransformer passing values --- discord/app_commands/transformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/transformers.py b/discord/app_commands/transformers.py index e7ce6f961..bbf426b28 100644 --- a/discord/app_commands/transformers.py +++ b/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: