We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341fcce commit e328249Copy full SHA for e328249
discord/commands/options.py
@@ -209,7 +209,8 @@ def __init__(
209
)
210
enum_choices = [OptionChoice(e.name, e.value) for e in input_type]
211
value_class = enum_choices[0].value.__class__
212
- if all(isinstance(elem.value, value_class) for elem in enum_choices):
+ if (enum_choices[0].value.__class__ in SlashCommandOptionType.__members__ and
213
+ all(isinstance(elem.value, value_class) for elem in enum_choices)):
214
input_type = SlashCommandOptionType.from_datatype(
215
enum_choices[0].value.__class__
216
0 commit comments