Capitol rioter Garret Miller's mugshot after being arrested in Texas on January 20, 2021.
CNN  — 

A Texas man was sentenced to more than three years in prison Wednesday for assaulting police officers during the US Capitol riot and threatening Rep. Alexandria Ocasio-Cortez on Twitter shortly after the attack.

Garret Miller, 36, pleaded guilty in December to charges related to his conduct on January 6, 2021. He was arrested weeks after the riot – on Inauguration Day – while wearing a shirt that said: “I was there, Washington, D.C., January 6, 2021.”

According to court documents, Miller brought gear with him to DC, including a rope, a grappling hook and a mouth guard, and prosecutors said he was “at the forefront of every barrier overturned, police line overrun, and entryway breached within his proximity that day.” Miller was detained twice during the riot, according to court documents.

When he left the Capitol building, he took the fight to Twitter, according to court documents. In response to a tweet from Ocasio-Cortez calling for then-President Donald Trump’s impeachment, Miller responded: “Assassinate AOC.”

“At the time that I tweeted at the Congresswoman, I intended that the communication be perceived as a serious intent to commit violence against the Congresswoman,” Miller said in court documents as part of his guilty plea. He also levied threats against the officer who shot and killed a pro-Trump rioter during the melee, according to court documents, saying that he wanted to “hug his neck with a nice rope.”

Clint Broden, Miller’s laywer, said in a statement to CNN that the sentence “ultimately reflects Judge Nichols careful consideration of the case,” and said that his client “has expressed his sincere remorse for his actions.”

Correction: An earlier version of this story misstated the nature of Garret Miller's guilty plea.