Hide / Show Channel

1. Hide Channel

You can hide a channel so that it does not appear in currently joined channel list.

await client.hideChannel({channelId: 'my_channel'});

2. Show Channel

You can unhide a channel so that it appears in currently joined channel list.

await client.showChannel({channelId: 'my_channel'});

3. Get Hidden Channel List

const resp = await client.getHiddenChannels({limit: 20});

if (resp.hasNext) {
    const lastChannelId = resp.channels[resp.channels.length - 1].id;
    
    const moreResp = await client.getHiddenChannels({lastChannelId: lastChannelId, limit: 20});
}

Last updated