When Joan asks Kelsey Grammar if Niles and Martin will be at the party he is going to, she is referring to the family of the character Kelsey Grammar is known for playing on TV which is Fraiser (1993-2004)
Kelsey Grammer is featured in this episode as himself. He was actually the producer of the show.