Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit 1bac317

Browse files
committed
use purge instead of async iterator
1 parent 3e1bde1 commit 1bac317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ async def annonce_inscription():
398398

399399
inscriptions_channel = bot.get_channel(inscriptions_channel_id)
400400

401-
async for message in inscriptions_channel.history(): await message.delete()
401+
await inscriptions_channel.purge(limit=None)
402402

403403
annonce_msg = await inscriptions_channel.send(annonce)
404404
tournoi['annonce_id'] = annonce_msg.id

0 commit comments

Comments
 (0)