feat(onebot): report group special title grant as notify/title
Decode the 0x2DC subType-16 field13==6 push: eventParam carries the member
uin (f5) and a gray-tip template (f2) whose last rich token holds the title
text. Emit notify/title {group_id, user_id, title}, matching NapCat. Field
layout taken from a real on-wire sample, not ported blindly.
This commit is contained in:
7 files changed
+133
-2
No files matched your search
@@ -307,6 +307,17 @@ export interface GroupCardChangeEvent extends QQEvent {
|
||||
cardOld: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A group member was granted a special title (群头衔) — Event 0x2DC subType 16,
|
||||
* field13 == 6. Maps to OB11 `notice/notify` `sub_type:'title'`.
|
||||
*/
|
||||
export interface GroupTitleChangeEvent extends QQEvent {
|
||||
kind: 'group_title_change';
|
||||
groupId: number;
|
||||
userUin: number; // the member who received the title
|
||||
title: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Group name changed (Event 0x2DC subType 16, field13 == 12). Mirrors NapCat's
|
||||
* OB11GroupNameEvent → `notice/notify` `sub_type:'group_name'`.
|
||||
@@ -352,4 +363,5 @@ export type QQEventVariant =
|
||||
| PttTransResultEvent
|
||||
| FriendInputStatusEvent
|
||||
| GroupNameChangeEvent
|
||||
| GroupCardChangeEvent;
|
||||
| GroupCardChangeEvent
|
||||
| GroupTitleChangeEvent;
|
||||
Reference in new issue
Block a user