Skip to content

Commit

Permalink
Update discord/commands/options.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Ice Wolfy <[email protected]>
  • Loading branch information
Icebluewolf and Dorukyum authored Sep 16, 2024
1 parent e01f631 commit cdd3ca1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cdd3ca1

Please sign in to comment.