How to update channel information

I want to update data information or coverurl for an already created channel.

ex.
channel: already created channel

channel.updateChannel(coverUrl: “!@#!%”, data: “!!%!@@!”, (groupChannel, error) => {
//error handle
//…
});

How to update channel information

ps. Do you have a pin function?

Hi @1118,

You can update the coverurl for an already existing channel with the updateChannel() function.

You can read the documentation here: https://sendbird.com/docs/chat/v3/javascript/guides/group-channel#2-create-a-channel

Additionally, you could also use the Platform API to update the channel: https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel

As for your question about the pin function, can you expand where you’d expect to see this?

Thanks,
Tyler

1 Like

thank you, I have one more question
what happened in updateChannel function Is it not detectable in onChannelChanged?

Sorry… It was my mistake solved!!