Chat / JavaScript
Chat JavaScript v4
Chat JavaScript
Chat
JavaScript
Home
/
Chat
/
JavaScript
/
Channel
This is the new Docs for Chat SDK v4 for JavaScript. To see the previous Docs, click here.

Freeze and unfreeze a channel

Open channels and group channels can be freezed and unfreezed. When a channel is freezed, only the operators can send a message to the channel and users can't chat.

Open channels can be freezed only by using Chat API or on Sendbird Dashboard. To freeze an open channel, go to Chat > Open channels on the dashboard, select an open channel, and click the Freeze icon at the upper right corner. To unfreeze, select the frozen channel and click the Freeze icon again.

Group channels can be freezed by operators using the Chat SDK as shown below.

// Freeze a channel.
await channel.freeze();

// Unfreeze a channel.
await channel.unfreeze();