aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 09:05:08 -0500
committerRapptz <[email protected]>2017-01-03 09:52:11 -0500
commit7431a127cf33802c1bcc65beda8eb08cfa2b6655 (patch)
tree4e1f789049f2c05d6a56e2ac9928106f2bdc4ddc /discord/ext
parentMove message creation to a factory method inside ConnectionState. (diff)
downloaddiscord.py-7431a127cf33802c1bcc65beda8eb08cfa2b6655.tar.xz
discord.py-7431a127cf33802c1bcc65beda8eb08cfa2b6655.zip
Change Messageable channel getter to be a coroutine.
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/context.py1
1 files changed, 1 insertions, 0 deletions
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