Nightmare Golem's ability goes through immunities?

My Secret Ingredient creature starts battles asleep if there’s a Nightmare Golem on the other side.

It also goes through diligence (immune to sleep/stun/frozen/snare), seems to apply sleep before these traits are taken into account.