diff --git a/packages/engine-chronocat-event/src/parser/index.ts b/packages/engine-chronocat-event/src/parser/index.ts index 825910e..d21feab 100644 --- a/packages/engine-chronocat-event/src/parser/index.ts +++ b/packages/engine-chronocat-event/src/parser/index.ts @@ -258,10 +258,12 @@ async function parseGuildMemberAddedMessage( ) event2.type = 'guild-member-added' - event2.operator = { - id: message.elements[0]!.grayTipElement!.groupElement!.adminUin!, - name: undefined as unknown as string, - } + // TODO: 自行入群大概率没有这个 adminUin 的,之后测下 + if (message.elements[0]!.grayTipElement!.groupElement!.adminUin) + event2.operator = { + id: message.elements[0]!.grayTipElement!.groupElement!.adminUin!, + name: undefined as unknown as string, + } event2.user = { id: message.elements[0]!.grayTipElement!.groupElement!.memberUin!,