diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 4adb27cad0..c2282d28bf 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -565,7 +565,7 @@ async def dispatch_error(self, ctx: Context, error: Exception) -> None: async def transform(self, ctx: Context, param: inspect.Parameter) -> Any: if isinstance(param.annotation, Option): default = param.annotation.default - required = param.annotation.required or default is None + required = param.annotation.required else: default = param.default required = default is param.empty