add findByFactoryCode to console shortcuts

This commit is contained in:
Nuckyz 2024-06-21 18:21:42 -03:00
parent 51dee70ced
commit 17cc81f15d
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -95,6 +95,8 @@ function makeShortcuts() {
findAllComponentsByCode: (...code: string[]) => cacheFindAll(filters.byComponentCode(...code)), findAllComponentsByCode: (...code: string[]) => cacheFindAll(filters.byComponentCode(...code)),
findExportedComponent: (...props: string[]) => findByProps(...props)[props[0]], findExportedComponent: (...props: string[]) => findByProps(...props)[props[0]],
findStore: newFindWrapper(filters.byStoreName), findStore: newFindWrapper(filters.byStoreName),
findByFactoryCode: newFindWrapper(filters.byFactoryCode),
findAllByFactoryCode: (...code: string[]) => cacheFindAll(filters.byFactoryCode(...code)),
PluginsApi: { getter: () => Vencord.Plugins }, PluginsApi: { getter: () => Vencord.Plugins },
plugins: { getter: () => Vencord.Plugins.plugins }, plugins: { getter: () => Vencord.Plugins.plugins },
Settings: { getter: () => Vencord.Settings }, Settings: { getter: () => Vencord.Settings },