@alemonjs/qq-bot 2.1.25 → 2.1.26
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/register.js +1 -1
- package/package.json +1 -1
package/lib/register.js
CHANGED
|
@@ -182,7 +182,7 @@ const register = (client) => {
|
|
|
182
182
|
let msg = event?.content ?? '';
|
|
183
183
|
if (event?.mentions) {
|
|
184
184
|
for (const item of event.mentions) {
|
|
185
|
-
if (
|
|
185
|
+
if (item?.id) {
|
|
186
186
|
msg = msg.replace(`<@!${item.id}>`, '').trim();
|
|
187
187
|
msg = msg.replace(`<@${item.id}>`, '').trim();
|
|
188
188
|
}
|