diff --git a/discord/commands/options.py b/discord/commands/options.py index 81a3484771..382067421f 100644 --- a/discord/commands/options.py +++ b/discord/commands/options.py @@ -209,9 +209,7 @@ def __init__( ) enum_choices = [OptionChoice(e.name, e.value) for e in input_type] value_class = enum_choices[0].value.__class__ - if enum_choices[ - 0 - ].value.__class__ in SlashCommandOptionType.__members__ and all( + if value_class in SlashCommandOptionType.__members__ and all( isinstance(elem.value, value_class) for elem in enum_choices ): input_type = SlashCommandOptionType.from_datatype(