aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 92ff64ab..ef2a3b15 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -137,7 +137,7 @@ class Command:
if converter is param.empty:
if not required:
- converter = type(param.default)
+ converter = str if param.default is None else type(param.default)
else:
converter = str
elif not inspect.isclass(type(converter)):