He is to undergo surgery to remove the pellet lodged in his throat.
Prior to sentencing, defence lawyer Jock Blathwayt told the court his client was still "$5000 out of pocket" and had gone to the house intoxicated.
"She had a few drinks for Dutch courage," he said.
Judge Tony Walsh noted the pre-sentence report stated Hanify was at low risk of reoffending, owed $2600 in fines and was doing well on a previous sentence of supervision.
He said her previous convictions were for traffic offences.
"Alcohol was clearly a factor in this offending," he said.
Hanify will served her community detention in Levin between the hours of 9pm and 8am daily.