Fix all deprecation warnings for 3.8

This commit is contained in:
Rapptz
2019-11-20 02:30:19 -05:00
parent 924398c1ac
commit a6f61dcbde
9 changed files with 43 additions and 43 deletions

View File

@ -707,7 +707,7 @@ class Message:
"""
if delay is not None:
async def delete():
await asyncio.sleep(delay, loop=self._state.loop)
await asyncio.sleep(delay)
try:
await self._state.http.delete_message(self.channel.id, self.id)
except HTTPException: