cogs/admin.py
async def delete_messages(self, ctx, amount):
        """purge a set amount of messages!"""
        if ctx.author.id in admin_ids:
            await ctx.channel.purge(limit=int(amount)+1)
            await ctx.send(f"purged {amount} messages", delete_after=2)
purge a set amount of messages!
purge a set amount of messages!
purge a set amount of messages!
async def delete_messages(self, ctx, amount):
        if ctx.author.id in admin_ids:
            await ctx.channel.purge(limit=int(amount)+1)
            await ctx.send(f"purged {amount} messages", delete_after=2)
async def delete_messages ( self , ctx , amount ) : if ctx . author . id in admin_ids : await ctx . channel . purge ( limit = int ( amount ) + 1 ) await ctx . send ( f"purged {amount} messages" , delete_after = 2 )
purge a set amount of messages!
purge a set amount of messages!
"""purge a set amount of messages!"""
self
ctx
amount