Skip to content

Commit 7e4ce97

Browse files
Fix #310
1 parent fcee9ea commit 7e4ce97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/commands/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def _parse_options(self, params) -> List[Option]:
450450
if p_obj.default != inspect.Parameter.empty:
451451
option.required = False
452452

453-
option.default = option.default or p_obj.default
453+
option.default = option.default if option.default is not None else p_obj.default
454454

455455
if option.default == inspect.Parameter.empty:
456456
option.default = None
@@ -932,9 +932,9 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
932932

933933
if self.cog is not None:
934934
await self.callback(self.cog, ctx, target)
935-
else:
935+
else:
936936
await self.callback(ctx, target)
937-
937+
938938
def copy(self):
939939
"""Creates a copy of this command.
940940

0 commit comments

Comments
 (0)