Sen. John CornynJohn CornynSenate GOP attempts to wave Trump off second Putin summit Senators push to clear backlog in testing rape kits Senate approves resolution warning Trump not to hand over US officials 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 HellerSenate Dems build huge cash edge in battlegrounds Jacky Rosen hits Dean Heller over health care in first negative ad GOP moderates hint at smooth confirmation ahead for Kavanaugh 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 spokesman on Putin visit: 'There is no invitation from Congress' Overnight Defense: Trump inviting Putin to DC | Senate to vote Monday on VA pick | Graham open to US-Russia military coordination in Syria Senate to vote Monday on Trump's VA nominee 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.