From 7431a127cf33802c1bcc65beda8eb08cfa2b6655 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 3 Jan 2017 09:05:08 -0500 Subject: Change Messageable channel getter to be a coroutine. --- discord/ext/commands/context.py | 1 + 1 file changed, 1 insertion(+) (limited to 'discord/ext/commands/context.py') diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index ff78c562..59f09117 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -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 -- cgit v1.2.3