This repository has been archived by the owner on Mar 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
BaseColorMiraiSDK.cs
2916 lines (2884 loc) · 68.2 KB
/
BaseColorMiraiSDK.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading;
//请用net6运行
//并安装Newtonsoft.Json
namespace ColoryrSDK;
//机器人返回数据包
/// <summary>
/// 55 [插件]获取群列表
/// </summary>
public record ReListGroupPack : PackBase
{
/// <summary>
/// 群列表
/// </summary>
public List<GroupInfo> groups { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 56 [插件]获取好友列表
/// </summary>
public record ReListFriendPack : PackBase
{
/// <summary>
/// 朋友列表
/// </summary>
public List<ReFriendInfoPack> friends { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 57 [插件]获取群成员
/// </summary>
public record ReListMemberPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 成员列表
/// </summary>
public List<ReMemberInfoPack> members { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 58 [插件]获取群设置
/// </summary>
public record ReGroupSettingPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 设定
/// </summary>
public GroupSettings setting { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 90 [插件]获取图片Url
/// </summary>
public record ReGetImageUrlPack : PackBase
{
/// <summary>
/// 图片UUID
/// </summary>
public string uuid { get; set; }
/// <summary>
/// 图片地址
/// </summary>
public string url { get; set; }
}
/// <summary>
/// 91 [插件]获取群成员信息
/// </summary>
public record ReMemberInfoPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 群员QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 昵称
/// </summary>
public string nick { get; set; }
/// <summary>
/// 头像图片
/// </summary>
public string img { get; set; }
/// <summary>
/// 群权限
/// </summary>
public MemberPermission per { get; set; }
/// <summary>
/// 群名片
/// </summary>
public string nameCard { get; set; }
/// <summary>
/// 群头衔
/// </summary>
public string specialTitle { get; set; }
/// <summary>
/// 头像下载链接
/// </summary>
public string avatarUrl { get; set; }
/// <summary>
/// 被禁言剩余时长
/// </summary>
public int muteTimeRemaining { get; set; }
/// <summary>
/// 入群时间
/// </summary>
public int joinTimestamp { get; set; }
/// <summary>
/// 最后发言时间
/// </summary>
public int lastSpeakTimestamp { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 92 [插件]获取朋友信息
/// </summary>
public record ReFriendInfoPack : PackBase
{
/// <summary>
/// QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 头像图片
/// </summary>
public string img { get; set; }
/// <summary>
/// 好友备注
/// </summary>
public string remark { get; set; }
/// <summary>
/// 用户详细资料
/// </summary>
public UserProfile userProfile { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 101 [插件]获取群文件
/// </summary>
public record ReGroupFilesPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 文件列表
/// </summary>
public List<GroupFileInfo> files { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 109 [插件]获取群公告
/// </summary>
public record ReGroupAnnouncementsPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 群公告
/// </summary>
public List<GroupAnnouncement> list { get; set; }
/// <summary>
/// 请求UUID
/// </summary>
public string uuid { get; set; }
}
//机器人枚举
/// <summary>
/// 性别
/// </summary>
public enum Sex
{
MALE,
FEMALE,
UNKNOWN
}
/// <summary>
/// 成员权限
/// </summary>
public enum MemberPermission
{
MEMBER = 0,
ADMINISTRATOR,
OWNER
}
//机器人数据类型
/// <summary>
/// 群公告
/// </summary>
public record GroupAnnouncement
{
/// <summary>
/// 发送者ID
/// </summary>
public long senderId;
/// <summary>
/// 公告ID
/// </summary>
public string fid;
/// <summary>
/// 有人都已确认
/// </summary>
public bool allConfirmed;
/// <summary>
/// 为已经确认的成员数量
/// </summary>
public int confirmedMembersCount;
/// <summary>
/// 公告发出的时间
/// </summary>
public long publicationTime;
/// <summary>
/// 内容
/// </summary>
public string content;
/// <summary>
/// 图片
/// </summary>
public string image;
/// <summary>
/// 是否发送给新成员
/// </summary>
public bool sendToNewMember;
/// <summary>
/// 置顶
/// </summary>
public bool isPinned;
/// <summary>
/// 修改昵称
/// </summary>
public bool showEditCard;
/// <summary>
/// 使用弹窗
/// </summary>
public bool showPopup;
/// <summary>
/// 需要群成员确认
/// </summary>
public bool requireConfirmation;
}
/// <summary>
/// 群文件信息
/// </summary>
public record GroupFileInfo
{
/// <summary>
/// 文件名
/// </summary>
public string name { get; set; }
/// <summary>
/// 文件ID
/// </summary>
public string id { get; set; }
/// <summary>
/// 文件路径
/// </summary>
public string absolutePath { get; set; }
/// <summary>
/// 是否是文件
/// </summary>
public bool isFile { get; set; }
/// <summary>
/// 是否是文件夹
/// </summary>
public bool isFolder { get; set; }
/// <summary>
/// 文件大小
/// </summary>
public long size { get; set; }
/// <summary>
/// 上传者QQ号
/// </summary>
public long uploaderId { get; set; }
/// <summary>
/// 上传时间
/// </summary>
public long uploadTime { get; set; }
/// <summary>
/// 上次修改时间
/// </summary>
public long lastModifyTime { get; set; }
/// <summary>
/// 文件到期时间
/// </summary>
public long expiryTime { get; set; }
/// <summary>
/// SHA1
/// </summary>
public string sha1 { get; set; }
/// <summary>
/// MD5
/// </summary>
public string md5 { get; set; }
}
/// <summary>
/// 用户信息
/// </summary>
public record UserProfile
{
/// <summary>
/// 昵称
/// </summary>
public string nickname { get; set; }
/// <summary>
/// 邮箱
/// </summary>
public string email { get; set; }
/// <summary>
/// 年龄
/// </summary>
public int age { get; set; }
/// <summary>
/// QQ等级
/// </summary>
public int qLevel { get; set; }
/// <summary>
/// 性别
/// </summary>
public Sex sex { get; set; }
/// <summary>
/// 个性签名
/// </summary>
public string sign { get; set; }
}
/// <summary>
/// 群信息
/// </summary>
public record GroupInfo
{
/// <summary>
/// 群号
/// </summary>
public long id;
/// <summary>
/// 群名
/// </summary>
public string name;
/// <summary>
/// 群头像
/// </summary>
public string img;
/// <summary>
/// 所有者QQ号
/// </summary>
public long oid;
/// <summary>
/// 机器人所拥有的权限
/// </summary>
public MemberPermission per;
}
/// <summary>
/// 群设定
/// </summary>
public record GroupSettings
{
/// <summary>
/// 入群公告, 没有时为空字符串.
/// </summary>
public string entranceAnnouncement { get; set; }
/// <summary>
/// 全体禁言状态
/// </summary>
public bool isMuteAll { get; set; }
/// <summary>
/// 允许群员邀请好友入群的状态
/// </summary>
public bool isAllowMemberInvite { get; set; }
/// <summary>
/// 自动加群审批
/// </summary>
public bool isAutoApproveEnabled { get; set; }
/// <summary>
/// 匿名聊天
/// </summary>
public bool isAnonymousChatEnabled { get; set; }
}
//机器人公共数据包
/// <summary>
/// 基础包
/// </summary>
public abstract record PackBase
{
/// <summary>
/// QQ号
/// </summary>
public long qq { get; set; }
}
/// <summary>
/// 0 [插件]插件开始连接
/// </summary>
public record StartPack : PackBase
{
/// <summary>
/// 插件名字
/// </summary>
public string name { get; set; }
/// <summary>
/// 监听的包
/// </summary>
public List<byte> reg { get; set; }
/// <summary>
/// 监听的群,可以为null
/// </summary>
public List<long> groups { get; set; }
/// <summary>
/// 监听的QQ号,可以为null
/// </summary>
public List<long> qqList { get; set; }
}
/// <summary>
/// 1 [机器人]图片上传前. 可以阻止上传(事件)
/// </summary>
public record BeforeImageUploadPack : PackBase
{
/// <summary>
/// 发送给的号码
/// </summary>
public long id { get; set; }
/// <summary>
/// 图片ID
/// </summary>
public string name { get; set; }
}
/// <summary>
/// 2 [机器人]头像被修改(通过其他客户端修改了头像)(事件)
/// </summary>
public record BotAvatarChangedPack : PackBase
{
}
/// <summary>
/// 3 [机器人]在群里的权限被改变. 操作人一定是群主(事件)
/// </summary>
public record BotGroupPermissionChangePack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 旧的权限
/// </summary>
public MemberPermission old { get; set; }
/// <summary>
/// 当前权限
/// </summary>
public MemberPermission now { get; set; }
}
/// <summary>
/// 4 [机器人]被邀请加入一个群(事件)
/// </summary>
public record BotInvitedJoinGroupRequestEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 邀请人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 事件ID
/// </summary>
public long eventid { get; set; }
}
/// <summary>
/// 5 [机器人]成功加入了一个新群(不确定. 可能是主动加入)(事件)
/// </summary>
public record BotJoinGroupEventAPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
}
/// <summary>
/// 6 [机器人]成功加入了一个新群(机器人被一个群内的成员直接邀请加入了群)(事件)
/// </summary>
public record BotJoinGroupEventBPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 邀请人QQ
/// </summary>
public long fid;
}
/// <summary>
/// 7 [机器人]主动退出一个群(事件)
/// </summary>
public record BotLeaveEventAPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
}
/// <summary>
/// 8 [机器人]被管理员或群主踢出群(事件)
/// </summary>
public record BotLeaveEventBPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ
/// </summary>
public long fid { get; set; }
}
/// <summary>
/// 9 [机器人]被禁言(事件)
/// </summary>
public record BotMuteEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 禁言时间
/// </summary>
public int time { get; set; }
}
/// <summary>
/// 10 [机器人]主动离线(事件)
/// 12 [机器人]被服务器断开(事件)
/// 13 [机器人]因网络问题而掉线(事件)
/// </summary>
public record BotOfflineEventAPack : PackBase
{
/// <summary>
/// 离线原因
/// </summary>
public string message { get; set; }
}
/// <summary>
/// 11 [机器人]被挤下线(事件)
/// </summary>
public record BotOfflineEventBPack : PackBase
{
/// <summary>
/// 离线原因
/// </summary>
public string message { get; set; }
/// <summary>
/// 标题
/// </summary>
public string title { get; set; }
}
/// <summary>
/// 14 [机器人]服务器主动要求更换另一个服务器(事件)
/// </summary>
public record BotOfflineEventCPack : PackBase
{
}
/// <summary>
/// 15 [机器人]登录完成, 好友列表, 群组列表初始化完成(事件)
/// </summary>
public record BotOnlineEventPack : PackBase
{
}
/// <summary>
/// 16 [机器人]主动或被动重新登录(事件)
/// </summary>
public record BotReloginEventPack : PackBase
{
/// <summary>
/// 原因消息
/// </summary>
public string message { get; set; }
}
/// <summary>
/// 17 [机器人]被取消禁言(事件)
/// </summary>
public record BotUnmuteEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
}
/// <summary>
/// 18 [机器人]成功添加了一个新好友(事件)
/// </summary>
public record FriendAddEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 昵称
/// </summary>
public string nick { get; set; }
}
/// <summary>
/// 19 [机器人]好友头像修改(事件)
/// </summary>
public record FriendAvatarChangedEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 图片url
/// </summary>
public string url { get; set; }
}
/// <summary>
/// 20 [机器人]好友已被删除(事件)
/// </summary>
public record FriendDeleteEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
}
/// <summary>
/// 21 [机器人]在好友消息发送后广播(事件)
/// </summary>
public record FriendMessagePostSendEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 是否成功发送
/// </summary>
public bool res { get; set; }
/// <summary>
/// 消息
/// </summary>
public List<string> message { get; set; }
/// <summary>
/// 错误消息
/// </summary>
public string error { get; set; }
}
/// <summary>
/// 22 [机器人]在发送好友消息前广播(事件)
/// </summary>
public record FriendMessagePreSendEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 消息
/// </summary>
public List<string> message { get; set; }
}
/// <summary>
/// 23 [机器人]好友昵称改变(事件)
/// </summary>
public record FriendRemarkChangeEventPack : PackBase
{
/// <summary>
/// 好友QQ号
/// </summary>
public long id { get; set; }
/// <summary>
/// 旧的昵称
/// </summary>
public string old { get; set; }
/// <summary>
/// 新的昵称
/// </summary>
public string now { get; set; }
}
/// <summary>
/// 24 [机器人]群 "匿名聊天" 功能状态改变(事件)
/// </summary>
public record GroupAllowAnonymousChatEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 旧的状态
/// </summary>
public bool old { get; set; }
/// <summary>
/// 新的状态
/// </summary>
public bool now { get; set; }
}
/// <summary>
/// 25 [机器人]群 "坦白说" 功能状态改变(事件)
/// </summary>
public record GroupAllowConfessTalkEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 旧的状态
/// </summary>
public bool old { get; set; }
/// <summary>
/// 新的状态
/// </summary>
public bool now { get; set; }
}
/// <summary>
/// 26 [机器人]群 "允许群员邀请好友加群" 功能状态改变(事件)
/// </summary>
public record GroupAllowMemberInviteEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 旧的状态
/// </summary>
public bool old { get; set; }
/// <summary>
/// 新的状态
/// </summary>
public bool now { get; set; }
}
/// <summary>
/// 27 [机器人]入群公告改变(事件)
/// </summary>
//public record GroupEntranceAnnouncementChangeEventPack : PackBase
//{
// / <summary>
// / 群号
// / </summary>
// public long id { get; set; }
// / <summary>
// / 执行人QQ号
// / </summary>
// public long fid { get; set; }
// / <summary>
// / 旧的状态
// / </summary>
// public bool old { get; set; }
// / <summary>
// / 新的状态
// / </summary>
// public bool now { get; set; }
//}
/// <summary>
/// 28 [机器人]在群消息发送后广播(事件)
/// </summary>
public record GroupMessagePostSendEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 是否发送成功
/// </summary>
public bool res { get; set; }
/// <summary>
/// 发送的消息
/// </summary>
public List<string> message { get; set; }
/// <summary>
/// 错误消息
/// </summary>
public string error { get; set; }
}
/// <summary>
/// 29 [机器人]在发送群消息前广播(事件)
/// </summary>
public record GroupMessagePreSendEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 消息
/// </summary>
public List<string> message { get; set; }
}
/// <summary>
/// 30 [机器人]群 "全员禁言" 功能状态改变(事件)
/// </summary>
public record GroupMuteAllEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 旧的状态
/// </summary>
public bool old { get; set; }
/// <summary>
/// 新的状态
/// </summary>
public bool now { get; set; }
}
/// <summary>
/// 31 [机器人]群名改变(事件)
/// </summary>
public record GroupNameChangeEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 旧的名字
/// </summary>
public string old { get; set; }
/// <summary>
/// 新的名字
/// </summary>
public string now { get; set; }
}
/// <summary>
/// 32 [机器人]图片上传成功(事件)
/// </summary>
public record ImageUploadEventAPack : PackBase
{
/// <summary>
/// 目标ID
/// </summary>
public long id { get; set; }
/// <summary>
/// 目标ID
/// </summary>
public long fid { get; set; }
/// <summary>
/// 图片ID
/// </summary>
public string uuid { get; set; }
}
/// <summary>
/// 33 [机器人]图片上传失败(事件)
/// </summary>
public record ImageUploadEventBPack : PackBase
{
/// <summary>
/// 目标ID
/// </summary>
public long id { get; set; }
/// <summary>
/// 错误码
/// </summary>
public int index { get; set; }
/// <summary>
/// 资源名
/// </summary>
public string name { get; set; }
/// <summary>
/// 错误消息
/// </summary>
public string error { get; set; }
}
/// <summary>
/// 34 [机器人]成员群名片改动(事件)
/// </summary>
public record MemberCardChangeEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 旧的状态
/// </summary>
public string old { get; set; }
/// <summary>
/// 新的状态
/// </summary>
public string now { get; set; }
}
/// <summary>
/// 35 [机器人]成成员被邀请加入群(事件)
/// </summary>
public record InviteMemberJoinEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 执行人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 进群人昵称
/// </summary>
public string name { get; set; }
/// <summary>
/// 邀请人QQ号
/// </summary>
public long ifid { get; set; }
/// <summary>
/// 邀请人昵称
/// </summary>
public string iname { get; set; }
}
/// <summary>
/// 36 [机器人] 成员主动加入群(事件)
/// </summary>
public record MemberJoinEventPack : PackBase
{
/// <summary>
/// 群号
/// </summary>
public long id { get; set; }
/// <summary>
/// 进群人QQ号
/// </summary>
public long fid { get; set; }
/// <summary>
/// 加入人昵称
/// </summary>
public string name { get; set; }
}
/// <summary>
/// 37 [机器人]一个账号请求加入群事件, [Bot] 在此群中是管理员或群主.(事件)
/// </summary>