Skip to content

Commit

Permalink
Apply new option type from annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed May 30, 2022
1 parent b64d8e1 commit 4709507
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +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
option = p_obj.default
else:
option = Option(option)
Expand Down

0 comments on commit 4709507

Please sign in to comment.