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/channel.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discord/channel.py') diff --git a/discord/channel.py b/discord/channel.py index 89a6051e..8efae546 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -88,6 +88,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): self.position = data['position'] self._fill_overwrites(data) + @asyncio.coroutine def _get_channel(self): return self @@ -262,6 +263,7 @@ class DMChannel(discord.abc.Messageable, Hashable): self.me = me self.id = int(data['id']) + @asyncio.coroutine def _get_channel(self): return self @@ -360,6 +362,7 @@ class GroupChannel(discord.abc.Messageable, Hashable): else: self.owner = utils.find(lambda u: u.id == owner_id, self.recipients) + @asyncio.coroutine def _get_channel(self): return self -- cgit v1.2.3