@alemonjs/onebot 0.2.6 → 0.2.7
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/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -321,7 +321,7 @@ var index = definePlatform(() => {
|
|
|
321
321
|
mention: async (event) => {
|
|
322
322
|
const uis = config?.master_id ?? [];
|
|
323
323
|
const e = event.value;
|
|
324
|
-
if (
|
|
324
|
+
if (event['name'] == 'message.create' || event['name'] == 'private.message.create') {
|
|
325
325
|
const Metions = [];
|
|
326
326
|
for (const item of e.message) {
|
|
327
327
|
if (item.type == 'at') {
|
|
@@ -358,9 +358,9 @@ var index = definePlatform(() => {
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
return;
|
|
361
|
+
return Metions;
|
|
362
362
|
}
|
|
363
|
-
return
|
|
363
|
+
return [];
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}
|