aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 20:24:42 -0500
committerRapptz <[email protected]>2017-01-03 20:24:42 -0500
commit94655c77c0d681f2ed1b4dbff982adce1718970b (patch)
treead4e8d3ded77f6a7c987c3dff00c28b862bb108f /discord/abc.py
parentFix NameError when dealing with permission resolution. (diff)
downloaddiscord.py-94655c77c0d681f2ed1b4dbff982adce1718970b.tar.xz
discord.py-94655c77c0d681f2ed1b4dbff982adce1718970b.zip
Fix Messageable.typing context manager.
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 7814772a..5711ef70 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -592,8 +592,7 @@ class Messageable(metaclass=abc.ABCMeta):
await channel.send_message('done!')
"""
- channel = yield from self._get_channel()
- return Typing(channel)
+ return Typing(self)
@asyncio.coroutine
def get_message(self, id):