onebots 0.0.28 → 0.0.29
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/lib/bin.js +0 -1
- package/lib/service/V12/index.js +3 -2
- package/package.json +1 -1
package/lib/bin.js
CHANGED
package/lib/service/V12/index.js
CHANGED
|
@@ -340,7 +340,7 @@ class V12 extends events_1.EventEmitter {
|
|
|
340
340
|
action = "send_" + params.detail_type + "_msg";
|
|
341
341
|
}
|
|
342
342
|
else if (params.user_id)
|
|
343
|
-
action = "
|
|
343
|
+
action = "send_Private_Msg";
|
|
344
344
|
else if (params.group_id)
|
|
345
345
|
action = "send_group_msg";
|
|
346
346
|
else if (params.discuss_id)
|
|
@@ -569,9 +569,10 @@ exports.V12 = V12;
|
|
|
569
569
|
return { type: 'text', text: msg };
|
|
570
570
|
}
|
|
571
571
|
const { type, data, ...other } = msg;
|
|
572
|
+
if (type === 'mention')
|
|
573
|
+
data['qq'] = Number(data['user_id']);
|
|
572
574
|
return {
|
|
573
575
|
type: type.replace('mention', 'at').replace('at_all', 'at'),
|
|
574
|
-
qq: data['user_id'],
|
|
575
576
|
...other,
|
|
576
577
|
...data
|
|
577
578
|
};
|