Change Messageable channel getter to be a coroutine.

This commit is contained in:
Rapptz
2017-01-03 09:05:08 -05:00
parent 98b981848d
commit 7431a127cf
4 changed files with 23 additions and 13 deletions

View File

@ -117,6 +117,7 @@ class Context(discord.abc.Messageable):
ret = yield from command.callback(*arguments, **kwargs)
return ret
@asyncio.coroutine
def _get_channel(self):
return self.channel