mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Remove remaining asyncio.coroutine calls.
Also remove Client.async_event
This commit is contained in:
@@ -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|
|
||||
|
||||
|
Reference in New Issue
Block a user