British actor Tom Felton collapsed while playing in a celebrity golf exhibition on Thursday (Sept. 23) at the Ryder Cup.

Felton, best known for his portrayal of Draco Malfoy on “Harry Potter,” reportedly experienced a medical incident at Whistling Straits and was immediately taken to the hospital for treatment.

The 34-year-old was already at the 18th hole when he collapsed. He was helped to his feet and then placed on a stretcher after which he was driven away on a golf cart.

Felton participated in the event to represent Europe in the celebrity match. It was held the day before the U.S. and Europe start the Ryder Cup.

In the latest update on the condition of Felton, one of his friends said that the 34-year-old is doing okay.

"He's okay, speedy recovery brother," his friend Derek Pitts wrote on his Instagram stories via Fox News.

Aside from that, little is known about the condition of the actor.

Felton has appeared in several movies, most notably eight films in the "Harry Potter" series.

Felton turned 34 on Wednesday, Sept. 22, and appeared upbeat with a positive photo that he posted on Instagram. His post read:

“33 years done - good lord it’s been so much fun getting here - yet, somehow, I still feel the best is yet to come - thank you all for your love , support & sense of humour - let’s keep a good thing going - to the next 33 xx.”

Felton continues to make himself busy since his “Harry Potter” days. He has landed several film and TV roles, including a stint on The CW’s “The Flash,” Cinemablend reported.

Other than that, he has been busy spending his time on the Wizarding World franchise as well as celebrating the 20th anniversary of The Sorcerer’s Stone. The film is available to stream on HBO Max.

Tom Felton IN PHOTO: Actor Tom Felton poses for a special preview opening of "The Wizarding World of Harry Potter" attraction at Universal Studios Hollywood. REUTERS/Mario Anzuoni