diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 6d7f198189..cd1b274004 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -45,11 +45,11 @@ from ...commands import ( ApplicationCommand, + Option, _BaseCommand, message_command, slash_command, user_command, - Option ) from ...enums import ChannelType from ...errors import * @@ -567,7 +567,7 @@ async def transform(self, ctx: Context, param: inspect.Parameter) -> Any: required = param.annotation.required or param.annotation.default is None default = param.annotation.default else: - required = (param.default is param.empty) + required = param.default is param.empty default = param.default converter = get_converter(param)