mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Use asyncio.create_task over asyncio.ensure_future
This commit is contained in:
1 parent
7a7c4b4d62
commit
2ff24a27b5
4 files changed
+9
-9
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user