Was he trying to call me unattractive?

My coworker likes to joke a lot and he’s about 10 years older than me. Today we were talking about personalities with my two other girlfriends from work and he said I was sweet. And he said there’s different kinds of nice people where it means you’re nice but unattractive and then other kinds and then I asked which one I was and he said the first one and laughed. I visibly got offended and said “did you mean the unattractive one?” and he laughed and my coworkers got silent and awkward and were like “he’s just messing with you. You’re reaction is funny that’s why”. He clarified eventually and was like “you’re bubbly and have a nice personality”. but then after some awkwardness he said I was in fact very attractive and said it seriously and walked away. Was he calling me ugly or just joking? I know I’m not ugly because a lot of people have called me pretty or beautiful but why was it so awkward when he mentioned this joke?
Was he trying to call me unattractive?
Post Opinion