channelMembersMinusGroupMembers method
Channel members minus group members.
Get the set of users who are members of the channel minus the set of users who are members of the given groups. Each user object contains an array of group objects representing the group memberships for that user. Each user object contains the boolean fields scheme_guest
, scheme_user
, and scheme_admin
representing the roles that user has for the given channel. ##### Permissions Must have manage_system
permission. Minimum server version: 5.14
Parameters:
Implementation
Future<void> channelMembersMinusGroupMembers(
String channelId,
String groupIds, {
int? page,
int? perPage,
}) async {
final response = await channelMembersMinusGroupMembersWithHttpInfo(
channelId,
groupIds,
page: page,
perPage: perPage,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}