getChannelMemberCountsByGroup method
Channel members counts for each group that has atleast one member in the channel
Returns a set of ChannelMemberCountByGroup objects which contain a group_id
, channel_member_count
and a channel_member_timezones_count
. ##### Permissions Must have read_channel
permission for the given channel. Minimum server version: 5.24
Parameters:
Implementation
Future<void> getChannelMemberCountsByGroup(
String channelId, {
bool? includeTimezones,
}) async {
final response = await getChannelMemberCountsByGroupWithHttpInfo(
channelId,
includeTimezones: includeTimezones,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}