A 14-year-old student who is accused of making threats on social media about shooting up his Garland ISD middle school has been taken into custody, Garland police said.

The threat was reportedly made Sunday about Charlie R. Lyles Middle School, and a school resource officer was alerted to it before classes started Monday morning, Lt. Pedro Barineau said.

Garland police took the boy, who is a student at the school, into custody at his home Monday.

Police did not recover a weapon, though it's unclear if the child's parents had firearms. The student had not been in trouble at the school before, Barineau said.

The teen was being held at the Dallas County juvenile detention facility Tuesday. He faces a charge of exhibition, use or threat of exhibition or use of firearms.

The charge carries a reduced punishment after a new law that went into effect Sept. 1.

A section of the state's education code was amended in the last legislative session to make the offense, previously punishable by a third-degree felony, a Class A misdemeanor unless the person had a firearm or immediate access to one.

According to a bill analysis, the change would provide a criminal punishment that "recognizes the severity of the threat but also does not bring the lifelong consequences of a felony charge against a student."