mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 01:29:46 +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.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!,
|
||||||
|
Loading…
Reference in New Issue
Block a user