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', 
  channel_cid: 'messaging:channel-id',
  created_by: 'banner-user-id',
  remove_future_channels_ban: true
)

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

Related PRs

Linear

  • CHA-1702

🤖 Generated with Claude Code

- Add query_future_channel_bans method
- ban_user/unban_user already support options for new parameters
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