banGroupUsers method

  1. @override
Future<void> banGroupUsers({
  1. required Session session,
  2. required String groupId,
  3. required Iterable<String> userIds,
})
override

Banning members

Group admins and superadmins can ban a user when demoting or kicking is not severe enough.

Implementation

@override
Future<void> banGroupUsers({
  required model.Session session,
  required String groupId,
  required Iterable<String> userIds,
}) async {
  await _client.banGroupUsers(
    api.BanGroupUsersRequest(
      groupId: groupId,
      userIds: userIds,
    ),
    options: _getSessionCallOptions(session),
  );
}