From 94655c77c0d681f2ed1b4dbff982adce1718970b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 3 Jan 2017 20:24:42 -0500 Subject: Fix Messageable.typing context manager. --- discord/abc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'discord/abc.py') 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): -- cgit v1.2.3