Skip to content

Commit a9da641

Browse files
authored
Fix the enum options fix breaking bridge commands (#1363)
1 parent 98c1f39 commit a9da641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def _parse_options(self, params, *, check_params: bool = True) -> List[Option]:
693693
if option.default is None:
694694
if p_obj.default == inspect.Parameter.empty:
695695
option.default = None
696-
elif issubclass(p_obj.default, (DiscordEnum, Enum)):
696+
elif isinstance(p_obj.default, type) and issubclass(p_obj.default, (DiscordEnum, Enum)):
697697
option = Option(p_obj.default)
698698
else:
699699
option.default = p_obj.default

0 commit comments

Comments
 (0)