Manage Channel Members
1. Invite Users
You can invite members to the channel even if you are not the owner.
const resp = await client.addChannelMembers({
channelId: 'my_channel',
members: ['new_user1', 'new_user_2'],
});2. Remove Members
const resp = await client.removeChannelMembers({
channelId: 'my_channel',
members: ['new_user1', 'new_user_2'],
});3. Get Channel Member List
const numOfRows = 5;
const resp = await client.getChannelMembers({
channelId: 'my_channel',
});
if (resp.hasNext) {
const lastUserId = resp.users[resp.users.length - 1].id;
const moreResp = await client.getChannelMembers({lastUserId, limit: numOfRows});
}4. Ban Users
5. Unban Users
6. Get Banned User List
7. Mute Members
Mute feature allows the channel owner to mute specific members in the channel. Muted members are not allowed to send messages.
8. Unmute Members
9. Get Muted User List
10. Peer Mute
You can 'peer mute' another member in the channel.
11. Get Peer Muted List
12. Peer Mute
You can 'unmute peer' another member in the channel.
Last updated