Skip to content

Commit ce81de3

Browse files
authored
[NativeAPI] 同步 Core 更改 (#54)
1 parent 81a7e92 commit ce81de3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lagrange.Core.NativeAPI/NativeModel/Event/BotGroupNudgeEventStruct.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public BotGroupNudgeEventStruct() { }
1515
public long OperatorUin = 0;
1616

1717
public ByteArrayNative Action = new();
18+
19+
public ByteArrayNative ActionImgUrl = new();
20+
1821
public long TargetUin = 0;
1922

2023
public ByteArrayNative Suffix = new();
@@ -25,6 +28,7 @@ public static implicit operator BotGroupNudgeEvent(BotGroupNudgeEventStruct e)
2528
e.GroupUin,
2629
e.OperatorUin,
2730
Encoding.UTF8.GetString(e.Action),
31+
Encoding.UTF8.GetString(e.ActionImgUrl),
2832
e.TargetUin,
2933
Encoding.UTF8.GetString(e.Suffix)
3034
);
@@ -37,6 +41,7 @@ public static implicit operator BotGroupNudgeEventStruct(BotGroupNudgeEvent e)
3741
GroupUin = e.GroupUin,
3842
OperatorUin = e.OperatorUin,
3943
Action = Encoding.UTF8.GetBytes(e.Action),
44+
ActionImgUrl = Encoding.UTF8.GetBytes(e.ActionImageUrl),
4045
TargetUin = e.TargetUin,
4146
Suffix = Encoding.UTF8.GetBytes(e.Suffix)
4247
};

0 commit comments

Comments
 (0)