Not intentionally trying to nitpick and it's probably because you're very young, but it would be good to learn how to word apologies in the future whenever you're in the wrong.
When someone says "I'm sorry if I offended someone", it can sound like they’re placing the blame on the people who were offended, rather than acknowledging that their word......
reply