mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 18:13:00 +00:00
[commands] None default without specified type uses str now.
This commit is contained in:
@@ -137,7 +137,7 @@ class Command:
|
|||||||
|
|
||||||
if converter is param.empty:
|
if converter is param.empty:
|
||||||
if not required:
|
if not required:
|
||||||
converter = type(param.default)
|
converter = str if param.default is None else type(param.default)
|
||||||
else:
|
else:
|
||||||
converter = str
|
converter = str
|
||||||
elif not inspect.isclass(type(converter)):
|
elif not inspect.isclass(type(converter)):
|
||||||
|
|||||||
Reference in New Issue
Block a user