FLORENCE, S.C. -- Rapper Kodak Black was sentenced to probation Wednesday for assaulting a teenage girl in a South Carolina hotel room.

Black was originally charged with rape, but accepted a deal and pleaded guilty to first-degree assault at the Florence County courthouse.

Black, whose legal name is Bill Kapri, faces a 10-year suspended prison sentence. He won't have to go to prison on the charge as long as he completes 18 months of probation, media outlets reported.

The victim in the case watched the plea online, and Black spoke to her. 鈥淚 apologize this happened, and I'm hopeful we can all move forward,鈥 he said.

Later on his Twitter feed, Black posted that the victim just wanted to get the case over with, and 鈥淚 ain't have to come off no money.鈥

The assault happened in 2016 when Black was in Florence for a performance. The girl said the rapper attacked her at a hotel room after the show, biting her on the neck and breast and continuing even after she told him to stop, authorities said.

The girl reported the attack to a school nurse who called police, investigators said.

Black had a three-year federal prison sentence for falsifying documents used to buy weapons at a Miami gun store commuted by President Donald Trump on his last day in office. He had served about half his sentence.

Black's lawyer, Bradford Cohen, was once a contestant on Trump's 鈥淐elebrity Apprentice鈥 show. The pardon notes that Kodak Black paid for schoolchildren's notebooks, supplies to daycare centres and food for the hungry, and donated $50,000 for restaurants in his hometown of Pompano Beach, Florida.

Black has sold over 30 million singles since 2014, and has had several multiplatinum and platinum-certified singles, including 鈥淶eze,鈥 鈥淣o Flockin鈥' and 鈥淩oll in Peace.鈥