Skip to content

Conversation

@totalimmersion
Copy link
Contributor

Summary

Add support for the Future Channel Bans feature.

New Parameters

  • ban_from_future_channels parameter in channel.banUser() options
  • remove_future_channels_ban parameter in client.unbanUser() options

Usage

// Ban user from current channel and all future channels created by banner
await channel.banUser('user-id', {
  ban_from_future_channels: true,
  reason: 'spam',
});

// Remove future channel ban (does NOT remove existing channel bans)
await client.unbanUser('user-id', {
  channel_cid: 'messaging:channel-id',
  created_by: 'banner-user-id',
  remove_future_channels_ban: true,
});

// Query future channel bans
const response = await client.queryFutureChannelBans({
  created_by_id: 'banner-user-id',
});

Related PRs

Linear

  • CHA-1696

🤖 Generated with Claude Code

- Add ban_from_future_channels option to BanUserOptions
- Add remove_future_channels_ban option to UnBanUserOptions
- Update channel.unbanUser to accept options parameter
- Add queryFutureChannelBans method to client
- Add FutureChannelBan and related types

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Size Change: +281 B (+0.08%)

Total Size: 360 kB

Filename Size Change
dist/cjs/index.browser.js 120 kB +96 B (+0.08%)
dist/cjs/index.node.js 121 kB +94 B (+0.08%)
dist/esm/index.mjs 119 kB +91 B (+0.08%)

compressed-size-action

@totalimmersion totalimmersion changed the title [CHA-1696] Add Future Channel Bans support feat: add Future Channel Bans support [CHA-1696] Jan 17, 2026
@adityaalifn adityaalifn marked this pull request as ready for review January 20, 2026 13:02
@adityaalifn adityaalifn merged commit 2effaba into master Jan 20, 2026
4 checks passed
@adityaalifn adityaalifn deleted the feature/future-channel-bans branch January 20, 2026 13:02
github-actions bot pushed a commit that referenced this pull request Jan 20, 2026
## [9.29.0](v9.28.0...v9.29.0) (2026-01-20)

### Bug Fixes

* escape strings interpolated into regular expressions ([#1669](#1669)) ([32705e1](32705e1))

### Features

* [CHA-1584] - Predefined filters support ([#1675](#1675)) ([cb6d2d1](cb6d2d1))
* add Future Channel Bans support [CHA-1696] ([#1677](#1677)) ([2effaba](2effaba))
@stream-ci-bot
Copy link

🎉 This PR is included in version 9.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants