From 22316a961026e0d60739b25c62ee743c33cb1ae5 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:38:52 -0500 Subject: [PATCH] Fix Both Bad Patches --- src/equicordplugins/noDeleteSafety/index.tsx | 2 +- src/plugins/_api/serverList.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/noDeleteSafety/index.tsx b/src/equicordplugins/noDeleteSafety/index.tsx index 785adeac..6a28ed2a 100644 --- a/src/equicordplugins/noDeleteSafety/index.tsx +++ b/src/equicordplugins/noDeleteSafety/index.tsx @@ -44,7 +44,7 @@ export default definePlugin({ { find: ".DELETE,onClick(){let", replacement: { - match: /let \i=(\i).toString\(\)/, + match: /let \i=(\i).guild.toString\(\)/, replace: "$self.HandleGuildDeleteModal($1);return;$&" } } diff --git a/src/plugins/_api/serverList.ts b/src/plugins/_api/serverList.ts index ec6002c6..00bf3054 100644 --- a/src/plugins/_api/serverList.ts +++ b/src/plugins/_api/serverList.ts @@ -39,7 +39,7 @@ export default definePlugin({ replace: "Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.In).concat($&)" }, { - match: /fixedDiscoveryIcon\}\)\}\)\]/, + match: /discoveryIcon\}\)\}\)\]/, replace: "$&.concat(Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.Below))" } ]