How to apply discount for registered users

I have to build a learning platform where users can buy courses. I have decided to use LearnDash. But a unique scenario here is that I have to apply a 20% discount on the course price if the user registers as a member. I am using Memberpress for members’ management. A similar plugin "Conditional Discounts" is available for WooCommerce, but how can I do this for LearnDash? Any idea?