llonebot-dist 7.1.1 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llonebot.js
CHANGED
|
@@ -10690,7 +10690,7 @@ class OB11HeartbeatEvent extends OB11BaseMetaEvent {
|
|
|
10690
10690
|
};
|
|
10691
10691
|
}
|
|
10692
10692
|
}
|
|
10693
|
-
const version$1 = "7.1.
|
|
10693
|
+
const version$1 = "7.1.2";
|
|
10694
10694
|
class OB11WebSocket {
|
|
10695
10695
|
constructor(ctx, config2) {
|
|
10696
10696
|
this.ctx = ctx;
|
|
@@ -32482,7 +32482,9 @@ class OneBot11Adapter extends Service2 {
|
|
|
32482
32482
|
else if (msgType === 44) {
|
|
32483
32483
|
const tip = Notify.GroupAdmin.decode(sysMsg.body.msgContent);
|
|
32484
32484
|
this.ctx.logger.info("收到管理员变动通知", tip);
|
|
32485
|
-
const
|
|
32485
|
+
const uid = tip.isPromote ? tip.body.extraEnable?.adminUid : tip.body.extraDisable?.adminUid;
|
|
32486
|
+
if (!uid) return null;
|
|
32487
|
+
const uin = await this.ctx.ntUserApi.getUinByUid(uid);
|
|
32486
32488
|
const event = new OB11GroupAdminNoticeEvent(
|
|
32487
32489
|
tip.isPromote ? "set" : "unset",
|
|
32488
32490
|
tip.groupCode,
|
|
@@ -50537,7 +50539,9 @@ async function transformSystemMessageEvent(ctx, data) {
|
|
|
50537
50539
|
}
|
|
50538
50540
|
} else if (msgType === 44) {
|
|
50539
50541
|
const tip = Notify.GroupAdmin.decode(sysMsg.body.msgContent);
|
|
50540
|
-
const
|
|
50542
|
+
const uid = tip.isPromote ? tip.body.extraEnable?.adminUid : tip.body.extraDisable?.adminUid;
|
|
50543
|
+
if (!uid) return null;
|
|
50544
|
+
const uin = await ctx.ntUserApi.getUinByUid(uid);
|
|
50541
50545
|
return {
|
|
50542
50546
|
eventType: "group_admin_change",
|
|
50543
50547
|
data: {
|