From f0f628eceba91e1ba4ad8cb214f7ce4bb0eadfa3 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 6 Jan 2026 09:38:13 -0500 Subject: [PATCH] ServerListAPI: Fix Patch --- src/plugins/_api/serverList.ts | 4 ++-- src/plugins/betterFolders/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/_api/serverList.ts b/src/plugins/_api/serverList.ts index eaee43958..eaac81767 100644 --- a/src/plugins/_api/serverList.ts +++ b/src/plugins/_api/serverList.ts @@ -39,8 +39,8 @@ export default definePlugin({ replace: "Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.In).concat($&)" }, { - match: /lastTargetNode.{0,50}\{\}\)\]/, - replace: "$&.concat(Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.Below))" + match: /lastTargetNode.{0,25}\?null:\i,/, + replace: "$&...Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.Below)," } ] } diff --git a/src/plugins/betterFolders/index.tsx b/src/plugins/betterFolders/index.tsx index f94331bbd..931dc23a2 100644 --- a/src/plugins/betterFolders/index.tsx +++ b/src/plugins/betterFolders/index.tsx @@ -20,6 +20,7 @@ import "./style.css"; import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; +import { getIntlMessage } from "@utils/discord"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy, findStoreLazy } from "@webpack"; import { FluxDispatcher } from "@webpack/common"; @@ -348,7 +349,7 @@ export default definePlugin({ } try { - return child?.props?.renderTreeNode !== null; + return child?.props?.["aria-label"] === getIntlMessage("SERVERS"); } catch (e) { console.error(e); return true;