Skip to content

Commit cdd3ca1

Browse files
Update discord/commands/options.py
Co-authored-by: Dorukyum <[email protected]> Signed-off-by: Ice Wolfy <[email protected]>
1 parent e01f631 commit cdd3ca1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

discord/commands/options.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ def __init__(
209209
)
210210
enum_choices = [OptionChoice(e.name, e.value) for e in input_type]
211211
value_class = enum_choices[0].value.__class__
212-
if enum_choices[
213-
0
214-
].value.__class__ in SlashCommandOptionType.__members__ and all(
212+
if value_class in SlashCommandOptionType.__members__ and all(
215213
isinstance(elem.value, value_class) for elem in enum_choices
216214
):
217215
input_type = SlashCommandOptionType.from_datatype(

0 commit comments

Comments
 (0)