aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cogs/admin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cogs/admin.py b/cogs/admin.py
index 67ffa4c..e77dc66 100644
--- a/cogs/admin.py
+++ b/cogs/admin.py
@@ -19,8 +19,7 @@ class Admin(commands.Cog):
@commands.command(aliases=['deleteEverything'], hidden=True)
@commands.check(is_botmaster)
async def purge(self, ctx):
- async for msg in ctx.channel.history():
- await msg.delete()
+ await ctx.message.channel.purge()
@commands.command(aliases=['quit'], hidden=True)
@commands.check(is_botmaster)