Skip to content

Conversation

@totalimmersion
Copy link
Contributor

Summary

Add support for the Future Channel Bans feature.

New Parameters

  • BanFromFutureChannels parameter in ban request
  • RemoveFutureChannelsBan parameter in unban request

Usage

// Ban user from current channel and all future channels created by banner
await channel.BanUserAsync("user-id", new BanRequest
{
    BanFromFutureChannels = true,
    Reason = "spam"
});

// Remove future channel ban (does NOT remove existing channel bans)
await client.UnbanUserAsync("user-id", new UnbanRequest
{
    ChannelCid = "messaging:channel-id",
    CreatedBy = "banner-user-id",
    RemoveFutureChannelsBan = true
});

// Query future channel bans
var response = await client.QueryFutureChannelBansAsync(new QueryFutureChannelBansRequest
{
    FilterConditions = new Dictionary<string, object>
    {
        { "created_by_id", "banner-user-id" }
    }
});

Related PRs

Linear

  • CHA-1704

🤖 Generated with Claude Code

totalimmersion and others added 3 commits January 17, 2026 14:08
- Add BanFromFutureChannels property to BanRequest
- Add removeFutureChannelsBan parameter to UnbanAsync
- Add FutureChannelBan class
- Add QueryFutureChannelBansRequest and QueryFutureChannelBansResponse
- Add QueryFutureChannelBansAsync method to IUserClient and UserClient
Add target_user_id parameter to allow filtering future channel bans
by target user, especially for client-side requests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Test the new TargetUserId parameter for filtering future channel bans.

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