diff options
| author | Rapptz <[email protected]> | 2016-01-06 18:27:11 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-06 18:27:11 -0500 |
| commit | 2c6126c2a17003eb4083b9509fc009f71c65e76f (patch) | |
| tree | fa0d2bce3ec13e6774a3153bd197219d7b1994a2 | |
| parent | Unavailable guilds get added to cache. (diff) | |
| download | discord.py-2c6126c2a17003eb4083b9509fc009f71c65e76f.tar.xz discord.py-2c6126c2a17003eb4083b9509fc009f71c65e76f.zip | |
[commands] None default without specified type uses str now.
| -rw-r--r-- | discord/ext/commands/core.py | 2 |
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)): |