Donald Trump has been accused of launching an online attack on the cast of Hamilton as a way to distract the media and the public from other scandals during the appointment of his transition team.

Several White House veterans said the President-elect’s widely-covered Twitter tirade against the Broadway production over the weekend was a deliberate attempt to distract from his $25 million (£20 million) fraud settlement and his at times contentious transition team appointments.

Mr Trump lashed out at the Hamilton cast on Saturday after one of the actors read an open letter following a production to vice president-elect Mike Pence, who was in the audience, pleading with him to represent “diverse America”.

In a series of tweets the billionaire businessman claimed Mr Pence was “harassed” by the “very rude” cast, before calling on the actors to apologise, adding that he had heard Hamilton was “highly overrated”.

He also mocked the actor who made the statement, Brandon Dixon, for reading it from a prepared card, saying: “Couldn’t even memorize lines!” - before subsequently deleting the tweet.

The incident was widely covered by the American media over the weekend, prompting a number of former White House aides to accuse the President-elect of playing a “game” in a bid to distract from more serious issues surrounding his imminent presidency.

David Frum, a former speechwriter to George W Bush, warned on Twitter: “The controversies will divert you from the scandals”, while Dan Pfeiffer, a former senior aide to Barack Obama, tweeted: “If your media outlet is focused on Trump v Hamilton instead of Trump’s $25m fraud settlement, you are a sad pawn in Trump’s game.”

Other Twitter users warned others not to let the Hamilton debacle distract from Mr Trump’s shortcomings, with one writing: “Trump is making noise about Hamilton to distract y'all from the fact that his brand scammed over 5,000 hopeful students. Do not forget”, and another tweeting: “Don't let Hamilton distract from Trump's $25M fraud lawsuit (or Bannon's appointment/Muslim surveillance/etc.) That's exactly what he wants.”

On Saturday it emerged Mr Trump had agreed to a $25 million (£20 million) settlement to resolve three lawsuits over Trump University, his former school for real estate investors, that alleged it had lured students to pay up to $35,000 (£28,331) to learn business and real estate tips from “handpicked” instructors, and called itself a university when it wasn’t an accredited school.

Donald Trump's most controversial quotes Show all 14 1 /14 Donald Trump's most controversial quotes Donald Trump's most controversial quotes On Isis: "Some of the candidates, they went in and didn’t know the air conditioner didn’t work and sweated like dogs, and they didn’t know the room was too big because they didn’t have anybody there. How are they going to beat ISIS?" Getty Donald Trump's most controversial quotes On immigration: "I will build a great wall — and nobody builds walls better than me, believe me —and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words." Reuters Donald Trump's most controversial quotes On Free Trade: "Free trade is terrible. Free trade can be wonderful if you have smart people. But we have stupid people." PAUL J. RICHARDS | AFP | Getty Images Donald Trump's most controversial quotes On Mexicans: "When Mexico sends its people, they’re not sending their best. They’re sending people that have lots of problems. They’re bringing drugs. They’re bringing crime. They’re rapists." Getty Donald Trump's most controversial quotes On China: "I just sold an apartment for $15 million to somebody from China. Am I supposed to dislike them?... I love China. The biggest bank in the world is from China. You know where their United States headquarters is located? In this building, in Trump Tower." Getty Images Donald Trump's most controversial quotes On work: "If you're interested in 'balancing' work and pleasure, stop trying to balance them. Instead make your work more pleasurable." AP Donald Trump's most controversial quotes On success: "What separates the winners from the losers is how a person reacts to each new twist of fate." Donald Trump's most controversial quotes On life: "Everything in life is luck." AFP Donald Trump's most controversial quotes On ambition: "You have to think anyway, so why not think big?" Getty Images Donald Trump's most controversial quotes On his opponents: "Bush is totally in favour of Common Core. I don't see how he can possibly get the nomination. He's weak on immigration. He's in favour of Common Core. How the hell can you vote for this guy? You just can't do it." Reuters Donald Trump's most controversial quotes On Obamacare: "You have to be hit by a tractor, literally, a tractor, to use it, because the deductibles are so high. It's virtually useless. And remember the $5 billion web site?... I have so many web sites, I have them all over the place. I hire people, they do a web site. It costs me $3." Getty Images Donald Trump's most controversial quotes On Barack Obama: "Obama is going to be out playing golf. He might be on one of my courses. I would invite him. I have the best courses in the world. I have one right next to the White House." PA Donald Trump's most controversial quotes On himself: "Love him or hate him, Trump is a man who is certain about what he wants and sets out to get it, no holds barred. Women find his power almost as much of a turn-on as his money." Getty Images Donald Trump's most controversial quotes On America: "The American Dream is dead. But if I get elected president I will bring it back bigger and better and stronger than ever before and we will make America great again." GETTY

Over the weekend Mr Trump was also urged by top law professors to divest from his new hotel in Washington DC after it was used to entertain and give a sales pitch to foreign diplomats, meaning he risks breaching the US constitution the moment he enters office.

In recent days the President-elect has also made several controversial appointments to his transition team. On Friday he offered the job of Attroney General to Senator Jeff Sessions, who has been criticised for his litany of past racist comments and Mr Flynn has called Islam a “cancer”, and today (Monday) Mr Trump suggested retired general James Mattis, who has previously said “It’s fun to shoot some people”, was a likely pick for the top job of secretary of defence.