muteGroupMember method

Future muteGroupMember(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> muteGroupMember(Map<String, dynamic> params) async {
  final muteParams = MuteGroupMember.formatParams(params);
  try {
    final res = await wrappedPromiseToFuture(
        timeweb!.setGroupMemberMuteTime(muteParams));
    if (res.code == 0) {
      return CommonUtils.returnSuccessWithDesc('mute group member success');
    }
  } catch (error) {
    return CommonUtils.returnError(error);
  }
}