Sen. John CornynJohn CornynGOP senators pitch alternatives after House pulls ObamaCare repeal bill Rand Paul takes victory lap on GOP health bill Senators push Trump on defense deals with India 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 HellerRed-state Dems in Supreme Court pressure cooker This week: House GOP faces make-or-break moment on ObamaCare Shutdown politics return to the Senate 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 McConnellMitch McConnellThe Memo: Winners and losers from the battle over health care GOP senators pitch alternatives after House pulls ObamaCare repeal bill Under pressure, Dems hold back Gorsuch support 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.