[commands] Make Command a descriptor for #426.

This commit is contained in:
Rapptz
2017-01-13 20:34:00 -05:00
parent ced617e786
commit 695b62ccd3
2 changed files with 5 additions and 2 deletions

View File

@@ -160,6 +160,11 @@ class Command:
finally:
ctx.bot.dispatch('command_error', error, ctx)
def __get__(self, instance, owner):
if instance is not None:
self.instance = instance
return self
@asyncio.coroutine
def do_conversion(self, ctx, converter, argument):
if converter is bool: