koishi-plugin-echo-cave 1.16.5 → 1.16.6
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.cjs +2 -2
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -368,7 +368,7 @@ async function getUserName(ctx, session, userId) {
|
|
|
368
368
|
const memberInfo = await session.onebot.getGroupMemberInfo(session.channelId, userId);
|
|
369
369
|
return memberInfo.card || memberInfo.nickname || userId;
|
|
370
370
|
} catch (error) {
|
|
371
|
-
ctx.logger.warn(
|
|
371
|
+
ctx.logger.warn(`Failed to get group member info (userId: ${userId}):`, error);
|
|
372
372
|
return userId;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,7 +378,7 @@ async function checkUsersInGroup(ctx, session, userIds) {
|
|
|
378
378
|
const memberIds = groupMembers.map((member) => member.user_id.toString());
|
|
379
379
|
return userIds.every((userId) => memberIds.includes(userId));
|
|
380
380
|
} catch (error) {
|
|
381
|
-
ctx.logger.warn(
|
|
381
|
+
ctx.logger.warn(`Failed to get group member list:`, error);
|
|
382
382
|
return false;
|
|
383
383
|
}
|
|
384
384
|
}
|