queryMutedMembers method
Get the muted 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> queryMutedMembers({
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: 'queryMutedMembers',
arguments: args,
);
return QueryMemberResult._from(result);
}