queryBlockedMembers method

Future<QueryMemberResult> queryBlockedMembers(
  1. {int? limit = 50,
  2. String? next}
)

Get the blocked members in the conversation.

limit's default is 50, should not more than 100. next's default is null.

Returns a list of members.

Implementation

Future<QueryMemberResult> queryBlockedMembers({
  int? limit = 50,
  String? next,
}) async {
  var args = <dynamic, dynamic>{
    'clientId': client.id,
    'conversationId': id,
  };
  if (next != null) {
    args['next'] = next;
  }
  if (limit != null) {
    if (limit < 1 || limit > 100) {
      throw ArgumentError(
        'limit should in [1...100].',
      );
    }
    args['limit'] = limit;
  }
  final Map result = await call(
    method: 'queryBlockedMembers',
    arguments: args,
  );
  return QueryMemberResult._from(result);
}