创建群组时的参数。

interface CreateGroupParams {
    name: string;
    description: string;
    memberIds?: readonly string[];
    public: boolean;
    joinApprovalRequired: boolean;
    allowInvites: boolean;
    inviteNeedConfirm: boolean;
    maxMembers?: number;
    ext?: string;
    avatar?: string;
}

Properties

name: string

群组名称。

description: string

群组描述。

memberIds?: readonly string[]

初始成员用户 ID 列表。

public: boolean

群组是否为公开群。

joinApprovalRequired: boolean

用户加入群组时是否需要管理员审批。

allowInvites: boolean

是否允许普通成员邀请其他用户加入群组。

inviteNeedConfirm: boolean

受邀用户加入群组前是否需要确认邀请。

maxMembers?: number

群组最大成员数。

ext?: string

群组扩展信息。

avatar?: string

群头像地址或标识。