Skip to content

Commit

Permalink
Fix #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
yoggys authored and Lulalaby committed May 26, 2022
1 parent c8f6a92 commit b22f45b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discord/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,9 @@ def _parse_options(self, params, *, check_params: bool = True) -> List[Option]:
option = Option(p_obj.default)
elif isinstance(p_obj.default, Option) and not (default := p_obj.default.default) is None:
option.default = default
else:
option.default = p_obj.default
option.required = False
if option.name is None:
option.name = p_name
if option.name != p_name or option._parameter_name is None:
Expand Down

0 comments on commit b22f45b

Please sign in to comment.