1
1
2
+ using EleCho . GoCqHttpSdk . Post . Interface ;
2
3
using EleCho . GoCqHttpSdk . Post . Model ;
3
4
4
5
namespace EleCho . GoCqHttpSdk . Post
5
6
{
6
7
/// <summary>
7
8
/// 群精华消息变更上报上下文
8
9
/// </summary>
9
- public record class CqGroupEssenceChangedPostContext : CqNoticePostContext
10
+ public record class CqGroupEssenceChangedPostContext : CqNoticePostContext , IGroupPostContext
10
11
{
11
12
internal CqGroupEssenceChangedPostContext ( ) { }
12
13
@@ -18,22 +19,27 @@ internal CqGroupEssenceChangedPostContext() { }
18
19
/// <summary>
19
20
/// 变更类型
20
21
/// </summary>
21
- public CqEssenceChangeType ChangeType { get ; set ; }
22
+ public CqEssenceChangeType ChangeType { get ; internal set ; }
22
23
23
24
/// <summary>
24
25
/// 消息发送者 QQ
25
26
/// </summary>
26
- public long SenderId { get ; set ; }
27
+ public long SenderId { get ; internal set ; }
27
28
28
29
/// <summary>
29
30
/// 操作者 QQ
30
31
/// </summary>
31
- public long OperatorId { get ; set ; }
32
+ public long OperatorId { get ; internal set ; }
32
33
33
34
/// <summary>
34
35
/// 消息 ID
35
36
/// </summary>
36
- public long MessageId { get ; set ; }
37
+ public long MessageId { get ; internal set ; }
38
+
39
+ /// <summary>
40
+ /// 群号
41
+ /// </summary>
42
+ public long GroupId { get ; internal set ; }
37
43
38
44
internal override object ? QuickOperationModel => null ;
39
45
internal override void ReadModel ( CqPostModel model )
@@ -47,6 +53,7 @@ internal override void ReadModel(CqPostModel model)
47
53
SenderId = noticeModel . sender_id ;
48
54
OperatorId = noticeModel . operator_id ;
49
55
MessageId = noticeModel . message_id ;
56
+ GroupId = noticeModel . group_id ;
50
57
}
51
58
}
52
59
}
0 commit comments