How do i restrict heros?

so i made a new level but I want it to be so that you can only play with a ranger-type hero help, please!

I am not 100% sure, but I think you have to go to the game settings and add “Allowed Heroes”. Then you have to add each hero type.