diff options
| author | Rapptz <[email protected]> | 2017-01-03 09:05:08 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:52:11 -0500 |
| commit | 7431a127cf33802c1bcc65beda8eb08cfa2b6655 (patch) | |
| tree | 4e1f789049f2c05d6a56e2ac9928106f2bdc4ddc /discord/ext | |
| parent | Move message creation to a factory method inside ConnectionState. (diff) | |
| download | discord.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.py | 1 |
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 |