Prince Harry and Prince William “dodged a bullet” by allegedly declining invitations to Sean “Diddy” Combs’ wild parties, according to a prominent royal author.

Christopher Andersen, author of “The King,” claims that the now-feuding brothers didn’t attend the disgraced rapper’s infamous bashes on the advice of palace aides.

Last week, a resurfaced 2011 interview from “The Graham Norton Show” saw the disgraced music mogul, 54, confess he wanted William and Harry to go to his fêtes when they were “young bucks.”

Prince William, Kanye West, Prince Harry and P Diddy posing together at a backstage party at Wembley Arena in London
Prince Harry and Prince William “dodged a bullet” by allegedly declining invitations to Sean “Diddy” Combs’ wild parties, according to a prominent royal author.AFP via Getty Images
“Diddy invited both William and Harry back when, as he put it, the brothers ‘were young bucks getting into trouble themselves,’” Andersen told Fox News. “Obviously, in their youth, both princes made plenty of headlines with their party animal antics at nightclubs in and around London.”

“Diddy made a point of inviting them to his parties,” Andersen continued. “But those invitations were wisely turned down, and after William and Kate got engaged, Diddy got the hint and stopped inviting them altogether.”

“As young bachelors, William and Harry might easily have said yes and attended one of Diddy’s wild parties. Thanks to their palace handlers, they dodged a bullet there,” the royal expert added.

In the resurfaced clip, Norton clarified whether the “I’ll Be Missing You” rapper really did want the royals at his events.

Kanye West, Prince Harry, and P Diddy posing together at a 2007 concert in memory of Princess Diana at Wembley Arena
In 2007, Harry and his brother were pictured with the scandal-scarred musician at an after-party.AFP via Getty Images
“Not anymore,” he clarified as Norton pointed out that William was about to marry Kate Middleton later that year.

“Don’t ruin our royal wedding for us,” the host, now 61, joked, prompting Combs to reassure him, “Trust me, they’re off the list.”

He added, “Before when they were young bucks growing up and they were getting in a lot of trouble themselves, so, hey, I was like, ‘Why don’t you come hang out with me?’”

Rapper Sean Combs, known as P Diddy, hosting a White Party at his mansion with other celebrities including Q-Tip, Vincent Laresca, and Jarobi White, all dressed in white.
The rapper hosted a slew of star-studded parties at his mansion.ZUMAPRESS.com / MEGA
Combs appeared to be referencing William and Harry’s booze-fueled younger years, during which the brothers would have nights out in Las Vegas.

In 2007, both the Prince of Wales, 42, and the Duke of Sussex, 40, were pictured with the scandal-scarred musician at an after-party for a concert honoring their late mother, Princess Diana.

Diddy performed at the Princess Diana Memorial Concert at Wembley Arena before attending an after-party at a club called Paper in London.

According to Andersen, this was Combs’ attempt at making his way into the royal fold.

Music mogul Sean Combs, Reggie Osse, Navdeep Saini and group of men in all white clothing holding drinks at inaugural White Party in Hamptons
The music mogul’s parties saw countless famous faces in attendance.ZUMAPRESS.com / MEGA
“Diddy has admitted that he aspired to move in royal circles and was even angling for an audience with the late queen,” the author claimed. “That never happened.”

“I’m sure that King Charles, who has seen the monarchy so badly tarnished by Prince Andrew’s relationship with Jeffrey Epstein, isn’t exactly thrilled at even the vague prospect of seeing the royal family dragged into yet another sordid sex scandal.”

“King Charles must be grateful that his sons’ encounters with Diddy didn’t include participating in the rap star’s infamous ‘freak offs,’” he added.

The Post has reached out to Combs’ reps for comment, as well as Kensington Palace and reps for Harry.

Sean Combs hosting a Black and White Attire Memorial Day Weekend Party in Las Vegas, holding a bottle, with Zeinab Badawi in attendance
Combs is now facing a minimum of 15 years in prison after being charged with sex trafficking, racketeering and fraud.WireImage
Combs is now facing a minimum of 15 years in prison after being charged with sex trafficking, racketeering and fraud.

On Tuesday, lawyers said that more than 100 victims — including one who was 9 years old at the time — are expected to file lawsuits against Combs for alleged sexual abuse and exploitation in cases that will expose “many powerful people.”

The complaints by 120 accusers were roughly split evenly by gender, included 25 minors and spanned over 30 years.

He has denied all of the allegations against him and is set to go to trial.