fix: replace deprecated calls
This commit is contained in:
1 parent
257135763f
commit
a88c37ea56
18 files changed
+54
-54
No files matched your search
@@ -20,7 +20,7 @@ async function handleMsg(coreContext: NapCatCore, msg: OB11Message, quickAction:
|
||||
const reply = quickAction.reply;
|
||||
const peer: Peer = {
|
||||
chatType: ChatType.friend,
|
||||
peerUid: await coreContext.apis.UserApi.getUidByUin(msg.user_id.toString()) as string,
|
||||
peerUid: await coreContext.apis.UserApi.getUidByUinV2(msg.user_id.toString()) as string,
|
||||
};
|
||||
if (msg.message_type == 'private') {
|
||||
if (msg.sub_type === 'group') {
|
||||
|
||||
Reference in new issue
Block a user