aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorbmintz <[email protected]>2018-06-30 02:14:05 -0500
committerRapptz <[email protected]>2018-07-05 03:45:58 -0400
commitec3435b22418d36a01c04d2098a70d71844a4c87 (patch)
tree259129acf47bf0b99c82cd6ff2476e1a35ea1a59 /discord/client.py
parentStore guild, unavailable tuple in ready as well (diff)
downloaddiscord.py-ec3435b22418d36a01c04d2098a70d71844a4c87.tar.xz
discord.py-ec3435b22418d36a01c04d2098a70d71844a4c87.zip
Remove remaining asyncio.coroutine calls.
Also remove Client.async_event
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py7
1 files changed, 0 insertions, 7 deletions
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|