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 {
  _session = session;

  await _api.v2GroupGroupIdBanPost(
    groupId: groupId,
    userIds: userIds.toList(growable: false),
  );
}