async def summarize(ctx, channel: discord.TextChannel = None): limit_search = 3 channel = channel or ctx.channel formatted = Formatter(ctx.channel.id) if ctx.author.id != 444582369123368961: await ctx.send("Unauthorised access") else: # await client.process_commands(ctx) formatted.counterChange() async for _ in channel.history(limit=limit_search): formatted.packData(str(_.content)) await ctx.send("Data formatting complete") await process(ctx) formatted.incrementCounter()