Updated

Pete Davidson made a brief appearance on “Saturday Night Live” hours after his alarming post on Instagram, in which he wrote, "I really don't want to be on this earth anymore."

The "SNL" cast member didn’t appear in any live sketches, but instead introduced the night’s musical guests, according to People magazine.

“Once again, Mark Ronson and Miley Cyrus," Davidson said.

The 25-year-old comedian appeared in a pre-taped sketch about finding a new host for the Academy Awards after comedian Kevin Hart stepped down from the hosting the gig after some of his past social media messages drew backlash. Davidson and other cast members played celebrities auditioning to replace Hart.

PAYBACK TIME FOR PETE DAVIDSON AS DAN CRENSHAW APPEARS ON 'SNL'

Davidson parodied “Mr. Robot’s” Rami Malek, saying he would bring “maybe something fun and super high energy” to the show.

The New York Police Department checked in on Davidson on Saturday after he posted a message on Instagram about mental health.

“I really don’t want to be on this earth anymore,” he wrote in a post now deleted.

“I’m doing my best to stay here for you but I actually don’t know how much longer i can last. all I’ve ever tried to do was help people. just remember I told you so.”

ARIANA GRANDE APPEARS TO CLAP BACK AT EX PETE DAVIDSON OVER COMEDIAN'S JOKE ABOUT FAILED ENGAGEMENT

Davidson has been open about his mental health struggles. He has been the subject of headlines in recent months for his short-lived romance with pop singer Ariana Grande and a controversy over a joke he made on a previous episode of "SNL" about Dan Crenshaw, an injured Navy veteran from Texas who has since been elected to Congress.

In the aftermath of his Instagram post, several celebrities offered their support.

“I’m downstairs and I’m not going anywhere if you need anyone or anything,” Ariana Grande said in a now-deleted message.

Jada Pinkett Smith said she was praying for Davidson to get better.

"Pete Davidson ... hang in there. There is a lot of help out here. Surrender to some love some where around you ... today! Right now! And then ... let in the help that will become available. I’m praying for you Pete. I’ve been there. It gets better," she said in a tweet.

Other celebrities like rappers Nicki Minaj, Kid Cudi, actor Jon Cryer and Meghan McCain also reached out to support Davidson.

Other "SNL" sketches in Saturday's show included a parody of “It’s A Wonderful Life” where Alec Baldwin, playing President Trump, gets a glimpse of a world where he was never elected president.