From b27fd9221a543c5e21ee9b79ff028ada23c23e97 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Tue, 22 Jul 2025 19:12:54 +0700 Subject: [PATCH] fix(plugins/no-track): remove immediate `discord` lib dependency --- src/plugins/preinit/no-track/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/plugins/preinit/no-track/index.ts b/src/plugins/preinit/no-track/index.ts index 910aee6..0335b27 100644 --- a/src/plugins/preinit/no-track/index.ts +++ b/src/plugins/preinit/no-track/index.ts @@ -1,4 +1,3 @@ -import { DispatcherModuleId } from '@revenge-mod/discord/common/flux' import { byProps } from '@revenge-mod/modules/finders/filters' import { waitForModules } from '@revenge-mod/modules/finders/wait' import { getModuleDependencies } from '@revenge-mod/modules/metro/utils' @@ -87,7 +86,17 @@ registerPlugin( cleanup(unsubSU, unsubSIU, unsubSentryInst) }, - start({ cleanup, logger }) { + start({ + cleanup, + logger, + unscoped: { + discord: { + common: { + flux: { DispatcherModuleId }, + }, + }, + }, + }) { // utils/AnalyticsUtils.tsx const unsubAU = waitForModules( byProps<{