mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
[commands] None default without specified type uses str now.
This commit is contained in:
parent
c1583dd7d6
commit
2c6126c2a1
@ -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)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user