1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 01:46:23 +00:00

Fix arrpc

This commit is contained in:
Vendicated 2022-12-03 14:57:51 +01:00
parent d4f70218ba
commit 4d8145f12c
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -30,7 +30,7 @@ const assetManager = mapMangledModuleLazy(
}
);
const rpcManager = findByCodeLazy(".APPLICATION_RPC(");
const lookupRpcApp = findByCodeLazy(".APPLICATION_RPC(");
async function lookupAsset(applicationId: string, key: string): Promise<string> {
return (await assetManager.getAsset(applicationId, [key, undefined]))[0];
@ -39,7 +39,7 @@ async function lookupAsset(applicationId: string, key: string): Promise<string>
const apps: any = {};
async function lookupApp(applicationId: string): Promise<string> {
const socket: any = {};
await rpcManager.lookupApp(socket, applicationId);
await lookupRpcApp(socket, applicationId);
return socket.application;
}