A Texas judge was suspended from the bench on Friday, after reportedly admitting to using hard drugs and sexting her bailiff.

The Texas Supreme Court decided to suspend 46-year-old Hilary H. Green after reading a 316-page report from the State Commission on Judicial Conduct, based on complaints stretching back to 2012.

The court filing claimed that Green, a mother of one, misrepresented her relationship with a convicted swindler in order to conceal her illegal drug purchases and addiction to prescription cough syrup.

Green allegedly admitted to the Commission that she used Ecstasy and marijuana with a boyfriend.However, she said she added that she stopped 'misusing' cough syrup three years ago and that it never impacted her work life.

Scroll down for video

Texas Justice of the Peace Hilary Green was suspended from the bench on Friday

She also said she traded sexts with a bailiff in her court between October 2013 and March 2014, but that she eventually asked him to stop texting her.

In order to be permanently banned from the bench, Green will have to stand trial in front of a three-judge panel.

Many of the allegations came out in contentious divorce proceedings with Green's ex-husband Ronald Green, a former city councilman and ex-controller

Unless she does, she has no hope of regaining her position.

After the decision on Friday, Green's attorney Chip Babcock said he was surprised by the supreme court's decision, since it didn't address any of Green's arguments to stay on the bench.

'We're a little surprised that the Supreme Court issued a three-paragraph order when the judge had raised serious and substantial constitutional issues,' Babcock said in a statement. 'We're disappointed in the court's ruling and we're still studying our options.'

He says many of the allegations against her are false, brought up by a bitter ex-husband and a jilted former extramarital lover.

'She's going to be fighting it. She's been doing a terrific job as a Justice of the Peace Precinct 7. She was reelected last November overwhelmingly,' said Babcock. 'The allegations that are in this complaint about her as to sex, drugs, and even the rock and roll are false and not true.'

Many of the Commission report's claims were based off allegations from Green's ex-husband, former city councilman and ex-controller Ronald Green, in 2015 divorce court papers. Other allegations come from her ex-boyfriend Claude Barnes, who she was seeing behind her husband's back during their marriage.

In a 2015 supreme court filing, Green said that Barnes threatened to destroy her after they broke up.

Barnes accused Green of abusing drugs, and detailed how she went about obtaining prescription and illegal drugs.

Barnes said that Green would get drugs from her bailiff, and that the two had a secret code for what drugs she wanted. If she texted him about 'nuts and bolts' she meant Tussionex, a prescription cough medicine, if she asked for 'cookie dough' she meant cocaine and if she wanted 'Skittles' that meant Ecstasy.

No one answered at Green's home after the news was announced on Friday

Her former boyfriend also said that they used Backpage.com on two occasions to hire prostitutes for threesomes. He said Green paid $150 to a prostitute in Houston on one occasion, and $200 to a prostitute in Austin on another.

The report, which was put out in May, also claimed that Green concealed her relationship to a five-time convicted felon, who appeared in her court over an eviction in 2012.

The felon was reportedly an ex-neighbor of Green's who helped renovate her home.

Green, a Democrat, has served in the Harris County Court since 2007, trying low-level criminal cases and lawsuits, including traffic tickets and evictions.

She was re-elected to her position in November, running unopposed. However, she did face a fight in the Democratic primary, beating out Cheryl Elliott Thornton in a run-off, winning 56.65 per cent of the vote to Thornton's 43.35 per cent.

According to her profile at the time, Green said she 'has a nine year old son and takes pride in volunteering at her son's school and with his football team'.