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() method
  • remove_future_channels_ban parameter in Client::unbanUser() method

Usage

// Ban user from current channel and all future channels created by banner
$channel->banUser('user-id', [
    'ban_from_future_channels' => true,
    'reason' => 'spam',
]);

// Remove future channel ban (does NOT remove existing channel bans)
$client->unbanUser('user-id', [
    'channel_cid' => 'messaging:channel-id',
    'created_by' => 'banner-user-id',
    'remove_future_channels_ban' => true,
]);

// Query future channel bans
$response = $client->queryFutureChannelBans([
    'filter_conditions' => ['created_by_id' => 'banner-user-id'],
]);

Related PRs

Linear

  • CHA-1701

🤖 Generated with Claude Code

- Add queryFutureChannelBans method
- banUser/unbanUser already support options array 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