The US rapper was accused of violating the rules on the social media platform now known as X.