Mayor Bill de Blasio is ramping up his attacks against the Trump administration, but he is taking a different approach when it comes to the Republicans in the race for mayor. 

Mayor Bill de Blasio was in Queens Thursday, holding a town hall hosted by City Councilman Jimmy Van Bramer. While he touted achievements like citywide ferry service and addressed more parochial concerns like stop signs, he also took a swipe at the White House in praising the city's diversity.

"How is it that we're the safest we've ever been, the most prosperous we've ever been, the most unified we've ever been, and the city that's the most diverse we've ever been with the most immigrants we've ever had, put all that together? Maybe it suggests that immigration is a good thing after all, doesn't it?" he said.

It's become second nature to the mayor: at an earlier event unveiling a police body camera program, he teed off on Attorney General Jeff Sessions, who is appearing on Long Island Friday to address violence carried out by a Central American street gang. The mayor noted Sessions has never reached out to Police Commissioner James O'Neill.

"This is a charade," de Blasio said. "They're not actually serious about driving down crime. If they were serious about driving down crime, they would call the police commissioner in New York City and say, 'How can we help you do it?' rather than, 'How can we attack your officers and the hard work you're doing?'"

The mayor was also asked Thursday about would-be Republican Bo Dietl, whose attempt to register in the party in time for this year's mayor's race was rejected by a judge. Dietl drew accusations of racism for suggesting the judge resembled First Lady Chirlane McCray.

"This is the first moment anyone's paying attention to him in this race, and he has proven to insult judges and insult women, and I don't think people are going to take him seriously, honestly," de Blasio said.

Dietl's remark came at a Republican candidate forum Wednesday, a race the mayor says he hasn't been closely following.

"My message to Republicans, work it out amongst yourselves and choose an opponent, and I'll see that individual in the fall," he said.

It should come as no surprise the mayor says he has no plans to meet President Trump when he comes to town late next week. As for this event, it's the 23rd town hall de Blasio's held since taking office.