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
@@ -263,6 +263,14 @@ export interface GroupReactNotify {
|
||||
groupReactionData?: pb<44, GroupReactionData>;
|
||||
}
|
||||
|
||||
// Group-name change (Event 0x2DC subType 16, NotifyMessageBody.field13 == 12).
|
||||
// Rides in `NotifyMessageBody.eventParam` (field 5). Field layout matches
|
||||
// Lagrange's `GroupNameChange` (RE'd from wrapper.linux.node): only the new
|
||||
// name at field 2. The operator uid is `NotifyMessageBody.operatorUid` (f21).
|
||||
export interface GroupNameChange {
|
||||
name?: pb<2, string>;
|
||||
}
|
||||
|
||||
// C2C input-status notify — the "对方正在输入…" push. Delivered as a system
|
||||
// message (msgType 0x210 / subMsgType 0x115) whose `MsgBody.msgContent` carries
|
||||
// this body. Field layout RE'd from `wrapper.linux.node`
|
||||
|
||||
Reference in new issue
Block a user