Browse Source

[commands] None default without specified type uses str now.

pull/77/head
Rapptz 9 years ago
parent
commit
2c6126c2a1
  1. 2
      discord/ext/commands/core.py

2
discord/ext/commands/core.py

@ -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)):

Loading…
Cancel
Save