Sen. John CornynJohn CornynAfter Texas shooting, lawmakers question whether military has systemic reporting problem Overnight Defense: Lawmakers question military's lapse after Texas shooting | Trump asks North Korea to 'make a deal' | Senate panel approves Army pick Overnight Regulation: House passes bill to overturn joint-employer rule | Trump officials to allow work requirements for Medicaid | Lawmakers 'alarmed' by EPA's science board changes MORE (R-Texas) is slated to headline a Republican fundraiser on Thursday night, just hours after he criticized President Obama for traveling to Philadelphia for such events. 

The Sunlight Foundation, a government transparency group, published an invitation to a reception for Sen. Dean HellerDean Arthur HellerBipartisan group of lawmakers aim to reform US sugar program Dem donor on MSNBC: 'Hopefully we'll get our sh-- together' The Hill interview — DNC chief: I came here to win elections MORE (R-Nev.) that will take place at the National Republican Senatorial Committee's (NRSC) headquarters. Cornyn heads the committee and the invite says the senator will be a  “special guest” at the event.

Earlier in the day Cornyn criticized Obama for a lack of leadership in the deficit talks, noting Senate Minority Leader Mitch McConnellAddison (Mitch) Mitchell McConnellMcConnell expects Paul to return to Senate next week Former Hill staff calls for mandatory harassment training Gaming the odds of any GOP tax bill getting signed into law MORE (R-Ky.) had invited the president to the Capitol to meet with Republicans.

“Instead of going to Philadelphia tonight and raising money ... why doesn't he call ...[congressioal leadership] into his office and just do his job? Just do his job?" asked Cornyn.

He was one of several senators who criticized Obama Thursday. The president declined the GOP's invite and kept to his scheduled events.

White House officials pointed out that several Republicans are attending fundraising events Thursday, which marks the last day of fundraising for the second quarter. 

The NRSC said that Cornyn’s appearance at an event just blocks from the Capitol building did not equal Obama's travels to Philadelphia.

The senator stands at the ready to work with the president at a moment’s notice, NRSC spokesman Brian Walsh told The Hill. 

“As evidenced by the fact that he made these comments on the Senate floor, it’s clear Senator Cornyn was at work in Washington today and ready to hear the President’s plan to solve our debt crisis,” Walsh said in a statement. 

“Unfortunately, instead of meeting with Senate Republicans, the president felt it was more important to raise campaign cash in Philadelphia,” he added.