A member of rapper Tekashi 6ix9ine's security detail was sentenced Monday to three years probation for a brawl at a swanky Upper East Side eatery.

Zachary Bunce, 33, copped to one count of misdemeanor assault as part of a plea deal.

Cops say that on Oct. 26, he showed up to Philippe Chow on Madison Avenue, where the rapper was scheduled to have a dinner party to celebrate dodging jail on a child sex charge in Manhattan.

TEKASHI 6IX9INE GIFTS GIRLFRIEND A $35K ROLEX WHILE IN JAIL

Bunce and Faheem Walter, 29, were allegedly turned away by security guards, who were working for Tekashi's new manager, police said.

The pair returned to the upscale eatery and got into a fight with one of the guards. Walter allegedly hurled a chair at him, and the guard pulled a licensed pistol and shot him twice in the stomach, according to cops.

Bunce declined to comment as he left Manhattan Criminal Court. Walter’s case is still pending.

Tekashi, who was later locked up on a federal racketeering and gun raps, was not involved in the fight.