aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
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/channel.py
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/channel.py')
-rw-r--r--discord/channel.py3
1 files changed, 3 insertions, 0 deletions
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