We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcee9ea commit 7e4ce97Copy full SHA for 7e4ce97
discord/commands/commands.py
@@ -450,7 +450,7 @@ def _parse_options(self, params) -> List[Option]:
450
if p_obj.default != inspect.Parameter.empty:
451
option.required = False
452
453
- option.default = option.default or p_obj.default
+ option.default = option.default if option.default is not None else p_obj.default
454
455
if option.default == inspect.Parameter.empty:
456
option.default = None
@@ -932,9 +932,9 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
932
933
if self.cog is not None:
934
await self.callback(self.cog, ctx, target)
935
- else:
+ else:
936
await self.callback(ctx, target)
937
-
+
938
def copy(self):
939
"""Creates a copy of this command.
940
0 commit comments