[commands] Make Command a descriptor for #426.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user