muteGroupMember method

  1. @override
Future<V2TimCallback> muteGroupMember({
  1. required String groupID,
  2. required String userID,
  3. required int seconds,
})
override

禁言(只有管理员或群主能够调用)

Implementation

@override
Future<V2TimCallback> muteGroupMember({
  required String groupID,
  required String userID,
  required int seconds,
}) async {
  Map<String, dynamic> param = {
    "groupID": groupID,
    "userID": userID,
    "seconds": seconds,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "muteGroupMember",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("muteGroupMember", param, resp.toLogString());
  return resp;
}