President-elect Donald Trump speaks during a press conference at Trump Tower in New York earlier this month. (Photo by Jabin Botsford/The Washington Post)

A senior official with the U.S. Secret Service may face disciplinary action after posting comments to Facebook suggesting that she would not "take a bullet" for President Trump.

Kerry O'Grady, the special agent in charge for the Denver district, also added "I am with her," a nod to the slogan for Hillary Clinton's campaign, to the posting.

O'Grady's comments were made in October, during the height of the presidential campaign and shortly after the release of a tape in which Trump made lewd comments about women. But they only came to light this week.

"Despite the fact that I am expected to take a bullet for both sides. But this world has changed and I have changed," O'Grady wrote, according to the Washington Examiner. "And I would take jail time over a bullet or an endorsement for what I believe to be a disaster to this country and the strong and amazing women and minorities who reside here."

In a statement, spokeswoman Cathy Milhoan acknowledged that the Secret Service is aware of O'Grady's comments but declined to say what actions were being taken in response.

“The U.S. Secret Service is aware of the postings and the agency is taking quick and appropriate action," Milhoan said. "As a matter of practice, we do not comment on personnel matters."

"All Secret Service agents and employees are held to the highest standards of professional and ethical conduct," she added. "Any allegations of misconduct are taken seriously and swiftly investigated.”

According to an administration official, the matter was referred to the Office of the Inspector General. But the Inspector General's office referred the matter back to the Secret Service for possible disciplinary action.

In an interview with the Washington Examiner, O'Grady said she regretted the posting.

"It was an internal struggle for me but as soon as I put it up, I thought it was not the sentiment that I needed to share because I care very deeply about the mission," she said.

Carol Leonnig contributed to this report.

An earlier version of this article misstated  Kerry O'Grady's first name. This version has been corrected.