Updating Channel
await client.updateChannel({
channelId: 'my_channel', // required
name: 'my_channel', // optional
imageUrl : 'image URL', // optional
maxMemberCount: 10, // optional. default 100
hideMessagesBeforeJoin: true,
category: 'category 1', // optional. can be used for grouping/searching channels
subcategory: 'subcategory 2', // optional. can be used for grouping/searching channels
data: { // optional
someMetaKey1: "someMetaValue1",
someMetaKey2: "someMetaValue2",
},
});
// when updating invitationOnly channel
await client.updateChannel({
channelId: 'my_invitation_only_channel',
name: 'my_invitation_only_channel',
imageUrl : 'image URL', // optional
maxMemberCount: 10, // optional. default 100
hideMessagesBeforeJoin: true,
category: 'category 1', // optional. can be used for grouping/searching channels
subcategory: 'subcategory 2', // optional. can be used for grouping/searching channels
invitationCode: 'secret_phrase',
data: { // optional
someMetaKey1: "someMetaValue1",
someMetaKey2: "someMetaValue2",
},
});Response
Last updated