Skip to content

Commit

Permalink
Fix the enum options fix breaking bridge commands (Pycord-Development…
Browse files Browse the repository at this point in the history
  • Loading branch information
Middledot authored May 16, 2022
1 parent 98c1f39 commit a9da641
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 @@ -693,7 +693,7 @@ def _parse_options(self, params, *, check_params: bool = True) -> List[Option]:
if option.default is None:
if p_obj.default == inspect.Parameter.empty:
option.default = None
elif issubclass(p_obj.default, (DiscordEnum, Enum)):
elif isinstance(p_obj.default, type) and issubclass(p_obj.default, (DiscordEnum, Enum)):
option = Option(p_obj.default)
else:
option.default = p_obj.default
Expand Down

0 comments on commit a9da641

Please sign in to comment.