From 465dd15e2c01d368e57fa4e972a8e3b62b9fc5ce Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:18:24 -0300 Subject: [PATCH] boop (please work I cant test) --- src/components/PluginSettings/PluginModal.tsx | 2 +- src/debug/runReporter.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index d1b973023..d77aed413 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -52,7 +52,7 @@ const cl = classNameFactory("vc-plugin-modal-"); const UserSummaryItem = findComponentByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"); const AvatarStyles = findByProps("moreUsers", "emptyUser", "avatarContainer", "clickableAvatar"); -const UserRecord: Constructor> = proxyLazy(() => UserStore.getCurrentUser().constructor) as any; +const UserRecord = proxyLazy>>(() => UserStore.getCurrentUser().constructor); interface PluginModalProps extends ModalProps { plugin: Plugin; diff --git a/src/debug/runReporter.ts b/src/debug/runReporter.ts index bfa881b8c..b42b36716 100644 --- a/src/debug/runReporter.ts +++ b/src/debug/runReporter.ts @@ -18,7 +18,7 @@ async function runReporter() { try { ReporterLogger.log("Starting test..."); - let loadLazyChunksResolve: (value: void | PromiseLike) => void; + let loadLazyChunksResolve: (value: void) => void; const loadLazyChunksDone = new Promise(r => loadLazyChunksResolve = r); // The main patch for starting the reporter chunk loading @@ -34,9 +34,7 @@ async function runReporter() { Vencord.Webpack._initReporter = function () { // initReporter is called in the patched entry point of Discord // setImmediate to only start searching for lazy chunks after Discord initialized the app - setTimeout(async () => { - loadLazyChunks().then(loadLazyChunksResolve); - }, 0); + setTimeout(() => loadLazyChunks().then(loadLazyChunksResolve), 0); }; await loadLazyChunksDone;