/// <summary> /// 置匿名群员禁言。 /// </summary> /// <param name="groupNumber">群号码。</param> /// <param name="anomymous">被操作的匿名成员名称。</param> /// <param name="time">禁言时长(以秒为单位)</param> public static void SetGroupAnonymousMemberGag(long groupNumber, string anomymous, long time) { CQLogger.GetInstance().AddLog(String.Format("[↑][禁言] 群:{0} 匿名:{1} 时长:{2}", groupNumber, anomymous, time)); if (CQ.ProxyType == CQProxyType.UDP) { string content = String.Format("SetGroupAnonymousMemberGag|{0}|{1}|{2}", groupNumber, anomymous.Replace("|", "$内容分割$"), time); CQUDPProxy.GetInstance().SendMessage(content); } else { CQAPI.SetGroupAnonymousBan(CQAPI.GetAuthCode(), groupNumber, anomymous, time); } }