From 63298f758025030e1c80e7138349717a549daf1b Mon Sep 17 00:00:00 2001 From: programminglaboratorys <107296738+programminglaboratorys@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:54:11 +0300 Subject: [PATCH] use strings for finds Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> --- src/plugins/statusPresets/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/statusPresets/index.tsx b/src/plugins/statusPresets/index.tsx index 58eaf6c53..f932fde3a 100644 --- a/src/plugins/statusPresets/index.tsx +++ b/src/plugins/statusPresets/index.tsx @@ -47,10 +47,10 @@ interface DiscordStatus { } const StatusStyles = findByPropsLazy("statusItem"); -const setStatus = findByCodeLazy(/default\.track\(\i.\i.CUSTOM_STATUS_UPDATED/); +const setStatus = findByCodeLazy(".CUSTOM_STATUS_UPDATED,{"); -const PMenu = findComponentByCodeLazy(/{id:\i,label:\i,icon:\i,hint:\i,renderSubmenu:\i,...\i}/); -const EmojiComponent = findComponentByCodeLazy(/\i.translateSurrogatesToInlineEmoji\(\i.name\)/); +const PMenu = findComponentByCodeLazy(".menuItemLabel", ".menuItemInner"); +const EmojiComponent = findComponentByCodeLazy(".translateSurrogatesToInlineEmoji("); const customStatusSettings = getUserSettingLazy("status", "customStatus");