Use asyncio.create_task over asyncio.ensure_future

This commit is contained in:
Nadir Chowdhury
2021-04-06 01:31:03 +01:00
committed by GitHub
parent 7a7c4b4d62
commit 2ff24a27b5
4 changed files with 9 additions and 9 deletions

View File

@ -971,7 +971,7 @@ class Message(Hashable):
except HTTPException:
pass
asyncio.ensure_future(delete(), loop=self._state.loop)
asyncio.create_task(delete())
else:
await self._state.http.delete_message(self.channel.id, self.id)