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: Overview | Chat JavaScript SDK | Sendbird Docs

Additionally, you could also use the Platform API to update the channel: Overview | Chat Platform API | Sendbird Docs

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!!