Updating Channel Members
Confused about "Updating Channel Members"?
Let us know how we can improve our documentation:
Adding & Removing Channel Members
Copied!Confused about "Adding & Removing Channel Members "?
Let us know how we can improve our documentation:
Using the addMembers()
method adds the given users as members, while removeMembers()
removes them.
Members can also be added while creating the channel.
Message parameter
Copied!You can optionally include a message object that client-side SDKs will use to populate a system message. This works for both add and remove members
Hide history
Copied!When members join a channel you can specify if they have access to the history or not. The history will be shown by default, set true
to hide_history
parameter to hide it for new members.
Leaving a channel
Copied!Confused about "Leaving a channel"?
Let us know how we can improve our documentation:
It is possible for user to leave the channel without moderator-level permissions. Make sure channel members have Leave Own Channel
permission.
Adding & Removing Moderators to a Channel
Copied!Confused about "Adding & Removing Moderators to a Channel"?
Let us know how we can improve our documentation:
Using the addModerators()
method adds the given users as moderators (or updates their role to moderator if already members), while demoteModerators()
removes the moderator status.