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.

Register and remove operators

Operators are users who can can delete any messages and also view all messages in the channel without any filtering or throttling. In group channels, operators can mute and ban users as well as freezing channels.

You can register users as operators by providing their user IDs in OPERATOR_IDS.

await channel.addOperators(OPERATOR_USER_IDS);

You can remove the users from being operators as shown below.

await channel.removeOperators(OPERATOR_USER_IDS);