aboutsummaryrefslogtreecommitdiff
path: root/cogs/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/admin.py')
-rw-r--r--cogs/admin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cogs/admin.py b/cogs/admin.py
index 6c15e5e..1fd8c5e 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)