From 17cc81f15d8a8683617bc76b6888cbbab89282ac Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 18:21:42 -0300 Subject: [PATCH] add findByFactoryCode to console shortcuts --- src/plugins/consoleShortcuts/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/consoleShortcuts/index.ts b/src/plugins/consoleShortcuts/index.ts index a856d0a0f..2f8a240aa 100644 --- a/src/plugins/consoleShortcuts/index.ts +++ b/src/plugins/consoleShortcuts/index.ts @@ -95,6 +95,8 @@ function makeShortcuts() { findAllComponentsByCode: (...code: string[]) => cacheFindAll(filters.byComponentCode(...code)), findExportedComponent: (...props: string[]) => findByProps(...props)[props[0]], findStore: newFindWrapper(filters.byStoreName), + findByFactoryCode: newFindWrapper(filters.byFactoryCode), + findAllByFactoryCode: (...code: string[]) => cacheFindAll(filters.byFactoryCode(...code)), PluginsApi: { getter: () => Vencord.Plugins }, plugins: { getter: () => Vencord.Plugins.plugins }, Settings: { getter: () => Vencord.Settings },