diff --git a/discord/commands/commands.py b/discord/commands/commands.py index ff65c01391..db865206e8 100644 --- a/discord/commands/commands.py +++ b/discord/commands/commands.py @@ -450,7 +450,7 @@ def _parse_options(self, params) -> List[Option]: if p_obj.default != inspect.Parameter.empty: option.required = False - option.default = option.default or p_obj.default + option.default = option.default if option.default is not None else p_obj.default if option.default == inspect.Parameter.empty: option.default = None @@ -932,9 +932,9 @@ async def _invoke(self, ctx: ApplicationContext) -> None: if self.cog is not None: await self.callback(self.cog, ctx, target) - else: + else: await self.callback(ctx, target) - + def copy(self): """Creates a copy of this command.