채널 주인 변경
채널 주인은(owner) 채널 소유권을 채널 내 멤버에게 이관할 수 있습니다.
await client.transferChannelOwnership({
channelId: 'my_channel',
userId: 'another_user_id'
});
Response
{
"channel": {
"id": "my_channel",
"name": "my_channel",
"imageUrl": "image url",
"data": {
"someMetaKey1": "someMetaValue1",
"someMetaKey2": "someMetaValue2"
},
"ownerId": "another_user_id",
"pushNotificationDisabled": false,
"type": "private",
"invitationCode": "",
"isFrozen": false,
"memberCount": 2,
"maxMemberCount": 10,
"hideMessagesBeforeJoin": true,
"category": "",
"subcategory": "",
"privateTag": "",
"privateData": "",
"mutedUsers": [],
"members": [
{
"id": "user123",
"username": "john",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"data": {},
"memberInfo": {},
"updatedAt": 1603244896634,
"createdAt": 1603184094285,
"lastReadAt": 1603244933412,
"lastSentAt": 1603244933412
},
{
"id": "another_user_id",
"username": "another_user_id",
"profileImageUrl": "http://cnd.test.com/another_user.jpg",
"data": {},
"memberInfo": {},
"updatedAt": 1603244410844,
"createdAt": 1603244410844,
"lastReadAt": 1603244933412,
"lastSentAt": 1603244933412
}
],
"bannedUsers": [],
"bots": [],
"updatedAt": 0,
"pushNotificationDisabled": false,
"pushNotificationSoundAOS": "",
"pushNotificationSoundIOS": "",
"createdAt": 0,
"unreadCount": 0,
"lastReadAt": 0,
"lastMessage": null
}
}
Last updated