createClosedChannel

abstract suspend fun createClosedChannel(    name: String,     description: String?,     category: String?,     autoProvisioning: Boolean,     maxItems: Int): RainbowResult<Channel>

Create a closed channel that is not discoverable by search.

This method creates a new closed channel with Channel.Mode.COMPANY_CLOSED. Channels in this mode are not discoverable through search, and once users are added to the channel, they cannot leave. This creates a sort of forced subscription to the channel for members. The owner of the channel controls the membership, and users cannot opt out of the channel.

The autoProvisioning parameter, when set to true, automatically adds all members of the company to the channel.

Return

A RainbowResult containing the created Channel object on success. In case of failure, it contains error details.

Parameters

name

The name of the channel to be created.

description

An optional description of the channel (can be null if not provided).

category

An optional category for the channel (can be null if not specified).

autoProvisioning

A boolean value indicating whether all members of the company should be automatically added to the channel (if true).

maxItems

The maximum number of persistent items (posts) allowed in the channel. Once this limit is reached, older items will be replaced by newer ones. The default value is 100.