aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-27 15:55:41 +0000
committerMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-27 15:55:41 +0000
commita95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8 (patch)
tree50ddb25a1f654f681add2df3fbac11ce808b836b /cogs
parent0ce35754c516d3e332230cbc2eb8dd83d1a13249 (diff)
downloadsteve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar.gz
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar.bz2
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar.lz
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar.xz
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.tar.zst
steve-bot-a95aa4d46bf7850c21a8fba94eca3ae9ee21d7c8.zip
Made purge() use .purge
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)