From 7d0ff80fbf4faf0f461e708d9867731f73131f22 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sat, 5 Oct 2024 11:59:15 +0800 Subject: [PATCH] feat(red): update `Group` --- packages/red/src/redEntity.ts | 48 +++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/packages/red/src/redEntity.ts b/packages/red/src/redEntity.ts index 633800a..bca4040 100644 --- a/packages/red/src/redEntity.ts +++ b/packages/red/src/redEntity.ts @@ -136,6 +136,11 @@ export interface Group { */ groupCode: string + /** + * 与 groupCode 相同,使用 groupCode 保证最大兼容性 + */ + groupUin: string + /** * 最大人数 */ @@ -192,7 +197,11 @@ export interface Group { avatarUrl?: string + /** + * 始终为 false,即使有 groupMemo + */ hasMemo: boolean + groupShutupExpireTime: string personShutupExpireTime: string @@ -208,13 +217,48 @@ export interface Group { groupFlagExt3: number groupOwnerId: { - memberUin: '0' + /** + * 始终是字符串 '0' + */ + memberUin: string /** * 不一定存在,勿使用 */ - memberUid: '' + memberUid: string + + memberQid: string } + + createTime: string // '1592570000' + groupClassExt: number + groupTypeFlag: number + groupFlagExt4: number + + /** + * 格式类似 + * + * ```json + * { "0": 231, "1": 131, "2": 173 } + * ``` + * + */ + groupMemo: Record + + groupSecLevelInfo: number + appealDeadline: number + subscriptionUin: string // '0' + hlGuildAppId: number + hlGuildSubType: number + memberChangeSeq: number + groupInfoChangeSeq: number + memberCardChangeSeq: number + memberLevelNameSeq: number + joinTime: number + cmdUinFlag: number + cmdUinFlagEx2: number + cmdUinRingtoneId: number + cmdUinMsgMask: number } export enum ChatType {