Question: are elves immune to sleep?
Answer: Creatures who don't sleep (such as elves, but not half-elves) or dream are immune to this spell. So if the spell requires a sleeping target like Dream and Nightmare, they cannot target elves (unless they willingly fall asleep).