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 e01f631 commit cdd3ca1Copy full SHA for cdd3ca1
discord/commands/options.py
@@ -209,9 +209,7 @@ 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 enum_choices[
213
- 0
214
- ].value.__class__ in SlashCommandOptionType.__members__ and all(
+ if value_class in SlashCommandOptionType.__members__ and all(
215
isinstance(elem.value, value_class) for elem in enum_choices
216
):
217
input_type = SlashCommandOptionType.from_datatype(
0 commit comments