Update Channel
Update a Channel
The updateChannel function allows users to modify the properties of a channel. This function is useful in cases where a channel's details need to be updated, such as changing the channel's display name or avatar.
The function takes a channelId parameter as a required input, which specifies the channel to be modified. Additionally, users can pass in any number of optional parameters to update the channel's properties. These optional parameters include:
displayName: The new display name for the channel.avatarFileId: A new avatar image for the channel - Used to store ID of image file that represents avatar of the channel. To obtain file ID to set as channel avatar please see Upload Images sectiontags: Arbitrary strings that can be used for define and query for the channelsmetadata: Additional metadata to be associated with the channel.
await ChannelRepository.updateChannel({
channelId: 'channelId',
displayName: channelName,
avatarFileId: fileId,
tags: ['tag1', 'tag2'],
metadata: { hello: 'world' }
})Version 6
Beta (v0.0.1)
Last updated
Was this helpful?