fix(plugins/no-track): remove immediate discord lib dependency

This commit is contained in:
PalmDevs 2025-07-22 19:12:54 +07:00
parent 3c6aa155ca
commit b27fd9221a
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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<{