mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-21 22:58:10 +00:00
fix(event): fix guild-member-added
null operator
field
This commit is contained in:
parent
b1bbadde83
commit
00c4688386
@ -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!,
|
||||
|
Loading…
Reference in New Issue
Block a user