App that blocks sound notifications of SPECIFIED APPS at SPECIFIED TIMES

At the moment I use an app called Nights Keeper that automatically blocks ALL sound notifications for me during the time I sleep.

The problem is I would like to have most sound notifications (calls, SMS messages, E-mails…) automatically blocked during the time I sleep while some other ones would remain intact (so for example I wouldn’t hear if somebody called me or sent an email to me, but I would hear if somebody messaged me on WhatsApp).

Is there an app that can do this?

Thank you in advance for your answers.