fix(event): fix guild-member-added null operator field

This commit is contained in:
Il Harper 2024-09-18 11:29:35 +08:00
parent b1bbadde83
commit 00c4688386
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -258,10 +258,12 @@ async function parseGuildMemberAddedMessage(
) )
event2.type = 'guild-member-added' event2.type = 'guild-member-added'
event2.operator = { // TODO: 自行入群大概率没有这个 adminUin 的,之后测下
id: message.elements[0]!.grayTipElement!.groupElement!.adminUin!, if (message.elements[0]!.grayTipElement!.groupElement!.adminUin)
name: undefined as unknown as string, event2.operator = {
} id: message.elements[0]!.grayTipElement!.groupElement!.adminUin!,
name: undefined as unknown as string,
}
event2.user = { event2.user = {
id: message.elements[0]!.grayTipElement!.groupElement!.memberUin!, id: message.elements[0]!.grayTipElement!.groupElement!.memberUin!,