Skip to content

Commit

Permalink
memlsit only delete onw messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JaWarrior12 committed Jan 18, 2025
1 parent 50ef0d6 commit 8aefb76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/setupcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,9 @@ async def tempNew(x):
if ctnt3 not in cuts:
cuts.append(ctnt3)
try:
await channel.purge()
#wait channel.purge()
amount=100
await channel.purge(limit=amount, check=lambda message: message.author == self.bot.user)
except:
pass
#print(cuts)
Expand Down

0 comments on commit 8aefb76

Please sign in to comment.