feat: getUserDetailInfoV2

This commit is contained in:
手瓜一十雪 committed 2025-01-03 21:38:57 +08:00
1 parent c499858a5a
commit 35548b3f40
5 files changed
+43 -6

No files matched your search

-3
View File
@@ -390,9 +390,6 @@ export class NapCatOneBot11Adapter {
this.context.logger.logDebug('有加群请求');
try {
let requestUin = await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid);
if (isNaN(parseInt(requestUin))) {
requestUin = (await this.core.apis.UserApi.getUserDetailInfo(notify.user1.uid)).uin;
}
const groupRequestEvent = new OB11GroupRequestEvent(
this.core,
parseInt(notify.group.groupCode),