@bot.command()
@commands.has_permissions(manage_message=True)
async def clear( ctx, amout = 100 ):
time = 2
await ctx.channel.purge( limit = amout + 1 )
await ctx.send( f'>>> *Очистка* \n Было очищенно { amout } сообщение(ий)' )
await asyncio.sleep(time)
await ctx.channel.purge( limit = 1 )
The permissions passed in must be exactly like the properties shown under discord.Permissions.