Skip to content

Commit edda069

Browse files
Update discord/commands/core.py
Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
1 parent e6d2f71 commit edda069

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

discord/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def _parse_options(self, params, *, check_params: bool = True) -> list[Option]:
810810
literal_values = get_args(option)
811811
if not all(isinstance(v, (str, int, float)) for v in literal_values):
812812
raise TypeError(
813-
"Literal values must be str, int, or float for Discord choices."
813+
"Literal values for choices must be str, int, or float."
814814
)
815815

816816
value_type = type(literal_values[0])

0 commit comments

Comments
 (0)