Was this ok to say to my friend?

I realised that I give mixed messages, because my social skills aren’t very good. I have Asperger’s. So Thursday night, I went out with a group of workmates. One of my friends hit on me. I was surprised and didn’t know how to handle it. So today I texted her, to say I think she’s very beautiful and nice, (she is); but I prefer men to women and that that won’t change. I said I’d like to be friends and I hope we can be. Was that ok? I just wanted to tell her and not lead her on or embarrass her online. Now I feel awkward. Guilty for being honest and afraid of losing her friendship. But I think it had to be said.

Was this ok to say to my friend?
Post Opinion