Skip to content

Commit

Permalink
Make enum options set input_type ...
Browse files Browse the repository at this point in the history
...to the respective enum
  • Loading branch information
Middledot authored and Lulalaby committed Jun 18, 2022
1 parent 9e3e69a commit d518ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def _parse_options(self, params, *, check_params: bool = True) -> List[Option]:

if not isinstance(option, Option):
if isinstance(p_obj.default, Option):
p_obj.default.input_type = option
p_obj.default.input_type = SlashCommandOptionType.from_datatype(option)
option = p_obj.default
else:
option = Option(option)
Expand Down

0 comments on commit d518ba5

Please sign in to comment.