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.ban_user() method
  • remove_future_channels_ban parameter in client.unban_user() method

Usage

# Ban user from current channel and all future channels created by banner
channel.ban_user("user-id", ban_from_future_channels=True, reason="spam")

# Remove future channel ban (does NOT remove existing channel bans)
client.unban_user("user-id", remove_future_channels_ban=True, channel_cid="messaging:channel-id", created_by="banner-user-id")

# Query future channel bans
response = client.query_future_channel_bans(filter_conditions={"created_by_id": "banner-user-id"})

Related PRs

Linear

  • CHA-1699

🤖 Generated with Claude Code

- ban_from_future_channels and remove_future_channels_ban are automatically
  supported via **options kwargs in ban_user and unban_user methods
- Add query_future_channel_bans method to query FCBs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants