public async Task Deban(Group group, MessageChain who) { var at = (At)who.FirstOrDefault(x => x is At); if (at != null) { _service.Deban(at.TargetId); await group.SendPlainAsync($"{at.TargetId} has been debanned."); } }
public static void Deban(this User user) { service.Deban(user.Identity); }