updateChannel

abstract suspend fun updateChannel(    channelId: String,     name: String? = null,     topic: String? = null,     mode: Channel.Mode? = null,     category: String? = null,     maxItems: Int? = null): RainbowResult<Channel>

Update a channel's details.

This method allows you to update the details of an existing channel, such as its name, topic, mode, category, and maximum items. Only the owner can update a channel's details.

Return

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

Parameters

channelId

The unique identifier of the Channel to be updated.

name

The new name for the channel (optional).

topic

The new topic for the channel (optional).

mode

The new mode for the channel (optional).

category

The new category for the channel (optional).

maxItems

The new maximum number of items the channel can store (optional).