From ec3435b22418d36a01c04d2098a70d71844a4c87 Mon Sep 17 00:00:00 2001 From: bmintz Date: Sat, 30 Jun 2018 02:14:05 -0500 Subject: Remove remaining asyncio.coroutine calls. Also remove Client.async_event --- discord/client.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'discord/client.py') diff --git a/discord/client.py b/discord/client.py index 2e4e7b60..9bf6bc59 100644 --- a/discord/client.py +++ b/discord/client.py @@ -787,13 +787,6 @@ class Client: log.debug('%s has successfully been registered as an event', coro.__name__) return coro - def async_event(self, coro): - """A shorthand decorator for :func:`asyncio.coroutine` + :meth:`event`.""" - if not asyncio.iscoroutinefunction(coro): - coro = asyncio.coroutine(coro) - - return self.event(coro) - async def change_presence(self, *, activity=None, status=None, afk=False): """|coro| -- cgit v1.2.3