createPublicChannel

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

Create a public channel visible within the company.

This method creates a new public channel with Channel.Mode.COMPANY_PUBLIC. Channels in this mode are discoverable by members of the same company through search, and the owner can invite members of the same company only.

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).

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.