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,6 +258,8 @@ async function parseGuildMemberAddedMessage(
)
event2.type = 'guild-member-added'
// TODO: 自行入群大概率没有这个 adminUin 的,之后测下
if (message.elements[0]!.grayTipElement!.groupElement!.adminUin)
event2.operator = {
id: message.elements[0]!.grayTipElement!.groupElement!.adminUin!,
name: undefined as unknown as string,