聊天室属性设置参数(含聊天室 ID)。

interface SetChatRoomAttributesParams {
    chatRoomId: string;
    attributes: Readonly<Record<string, string>>;
    autoDelete?: boolean;
    isForced?: boolean;
}

Hierarchy (View Summary)

Properties

chatRoomId: string

聊天室 ID。该参数必传。

attributes: Readonly<Record<string, string>>

待设置的属性键值对。key 和 value 均必须为字符串。

autoDelete?: boolean

成员退出聊天室时是否自动删除其设置的属性。默认值为 true

isForced?: boolean

是否允许覆盖其他成员设置的属性。默认值为 false