Haley showed off her aptitude for keeping a secret last week with a shocking resignation announcement, but she displayed a brand new talent during her speech in New York City on Thursday as she assumed the role of a comedian for the night.

"Two years ago Trump was here and made some waves with his remarks, so last year you went with Paul Ryan, who’s a Boy Scout and that’s fine, but a little boring. So this year, you wanted to spice things up again,” she quipped after being introduced as the “next president of the United States.”

Haley kept the crowd entertained during her keynote speech at the Annual Alfred E. Smith Memorial Foundation Dinner, a fundraiser for impoverished children, and she even touched on the president’s ongoing feud with Warren, D-Mass., over the senator's Native American ancestry.

Evan Vucci/AP, FILE

President Donald Trump talks to Nikki Haley, the U.S. Ambassador to the United Nations, at the United Nations General Assembly at U.N. headquarters, Sept. 24, 2018.

“I get it, you wanted an Indian woman, but Elizabeth Warren failed her DNA test,” joked Haley, whose parents emigrated from Punjab, India. “Actually, when the president found out that I was Indian American, he asked me if I was from the same tribe as Elizabeth Warren.”

Haley, who will keep her post at the U.N. until the end of the year, acknowledged that she had tough shoes to fill as keynote speaker, an honor most-recently bestowed to House Speaker Ryan, Trump and Hillary Clinton.

“I really am super excited to be at the Al Smith Dinner. As a member of the Trump Cabinet, it is a thrill to be out to dinner without being harassed,” Haley said. "Actually the president called me this morning and gave me some really good advice.

“He said if I get stuck for laughs, just brag about his accomplishments. It really killed at the U.N., I got to tell you." she added, referring to an incident at the U.N. General Assembly last month when audience members laughed after Trump said his “administration has accomplished more than almost any in the history of our country.”

Olivier Douliery/AFP/Getty Images

Nikki Haley, the United States Ambassador to the United Nations during a meeting with US President Donald Trump speaks in the Oval office of the White House, Oct. 9, 2018, in Washington, D.C.

Haley also made light of her role as America’s ambassador in a joke about “the most important thing” she learned working under Trump.

“I learned that the U.N. has 193 member nations, 180 of which are mad at us on any given day, and the most important thing I learned is that with all of our differences there is still one thing that unites all 193 countries: At one point every single one of them was paying Paul Manafort,” she said, referring to Trump’s former campaign chairman, who was convicted on federal money laundering charges.

The former South Carolina governor also delivered punchlines about rapper Kanye West and Trump’s embattled attorney general, Jeff Sessions.

Haley said her working with the U.N. was an “honor of a lifetime" and said she would continue to support Trump as “a private citizen.”

"I expect to continue to speak out from time to time on important public policy matters, but I will surely not be a candidate for any office in 2020,” she said following her announcement. “As a private citizen, I look forward to supporting your re-election as president and supporting the policies that will continue to move our great country toward even greater heights."