feat(onebot): report group name change as notify/group_name

Dispatch the 0x2DC subType-16 push by NotifyMessageBody.field13 (was
emoji-react only); field13==12 decodes eventParam as GroupNameChange and
emits notify/group_name {group_id, user_id=operator, name_new}, matching
NapCat. Emoji-react (field13==35) path unchanged.
This commit is contained in:
DrSmoothl committed 2026-07-07 02:05:52 +08:00
1 parent 852870db59
commit bfde0daab4
7 files changed
+128 -3

No files matched your search

+13 -1
View File
@@ -294,6 +294,17 @@ export interface PttTransResultEvent extends QQEvent {
text: string;
}
/**
* Group name changed (Event 0x2DC subType 16, field13 == 12). Mirrors NapCat's
* OB11GroupNameEvent → `notice/notify` `sub_type:'group_name'`.
*/
export interface GroupNameChangeEvent extends QQEvent {
kind: 'group_name_change';
groupId: number;
operatorUin: number; // who renamed the group
name: string; // the new group name
}
/**
* C2C "对方正在输入…" input-status push (Event 0x210 subType 0x115 / 277).
* `eventType` 1 = typing, 3 = recording a voice message. Mirrors NapCat's
@@ -326,4 +337,5 @@ export type QQEventVariant =
| FriendAddEvent
| GroupMsgEmojiLikeEvent
| PttTransResultEvent
| FriendInputStatusEvent;
| FriendInputStatusEvent
| GroupNameChangeEvent;