Ejemplo n.º 1
0
        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.");
            }
        }
Ejemplo n.º 2
0
 public static void Deban(this User user)
 {
     service.Deban(user.Identity);
 }