diff --git a/lib/discord/src/preinit.ts b/lib/discord/src/preinit.ts index 2c44a57..695604e 100644 --- a/lib/discord/src/preinit.ts +++ b/lib/discord/src/preinit.ts @@ -1,17 +1,27 @@ import { lookupModule } from '@revenge-mod/modules/finders' import { withDependencies, + withName, withProps, } from '@revenge-mod/modules/finders/filters' import type { Metro } from '@revenge-mod/modules/types' import type { DiscordModules } from './types' -const { relative } = withDependencies +const [, _asyncToGeneratorModuleId] = lookupModule( + withName('_asyncToGenerator'), +) +const [, _classCallCheckModuleId] = lookupModule(withName('_classCallCheck')) +const [, _createClassModuleId] = lookupModule(withName('_createClass')) // ../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx export const [AppStartPerformance] = lookupModule( withProps('markAndLog').and( - withDependencies([relative(-1), null, null, null]), + withDependencies([ + _asyncToGeneratorModuleId, + _classCallCheckModuleId, + _createClassModuleId, + 2, + ]), ), ) as [DiscordModules.AppStartPerformance, Metro.ModuleID]