aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 85bb1b9f..72f25a69 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -413,6 +413,8 @@ class Command(_BaseCommand):
if param.kind == param.VAR_POSITIONAL:
raise RuntimeError() # break the loop
if required:
+ if self._is_typing_optional(param.annotation):
+ return None
raise MissingRequiredArgument(param)
return param.default