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:
7 files changed
+128
-3
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user