aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-23 18:36:41 -0400
committerRapptz <[email protected]>2016-06-23 18:36:41 -0400
commit629c24339be6aac571e0f67e6b63d05bbc9dfdec (patch)
tree7e1c3ba10b3cc38273cf7af467e1792d320755a8
parentFix bug with edit_profile for user accounts (diff)
downloaddiscord.py-629c24339be6aac571e0f67e6b63d05bbc9dfdec.tar.xz
discord.py-629c24339be6aac571e0f67e6b63d05bbc9dfdec.zip
[commands] Fix bug that made functions stop working as converters.
-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 18a2d9d4..62ae0408 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -174,7 +174,7 @@ class Command:
if converter.__module__.startswith('discord.'):
converter = getattr(converters, converter.__name__ + 'Converter')
- if issubclass(converter, converters.Converter):
+ if inspect.isclass(converter) and issubclass(converter, converters.Converter):
instance = converter(ctx, argument)
if asyncio.iscoroutinefunction(instance.convert):
return (yield from instance.convert())