From 04fccbb149d237aace9eb1e650b5e944a1bf907a Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Wed, 20 Aug 2025 20:20:49 +0700 Subject: [PATCH] fix(lib/discord/design): update filter for `Design` on 295204+ --- lib/discord/src/design.ts | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/lib/discord/src/design.ts b/lib/discord/src/design.ts index afdacef..a29f3af 100644 --- a/lib/discord/src/design.ts +++ b/lib/discord/src/design.ts @@ -4,6 +4,7 @@ import { byProps, bySingleProp, preferExports, + some, } from '@revenge-mod/modules/finders/filters' import { ReactJSXRuntimeModuleId, @@ -23,14 +24,31 @@ export let Design: Design = proxify( const [module] = lookupModule( preferExports( byProps('TableRow', 'Button'), - byDependencies( - loose([ - relative(1), - undefined, - relative(2), - relative(3), - 2, - ]), + some( + byDependencies( + loose([ + undefined, + undefined, + undefined, + relative.withDependencies([2], 1), + 2, + undefined, // 3009 + undefined, // 3010 + undefined, // 3011 + undefined, // 3012 + relative.withDependencies([2], 2), + ]), + ), + // TODO(PalmDevs): Remove once stable channel is > 295203 (for 295203 and below) + byDependencies( + loose([ + relative(1), + undefined, + relative(2), + relative(3), + 2, + ]), + ), ), ), {