From 9b69d9b33f6ae5c2e546b64a55c31e169f3cbf85 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 12 Mar 2026 21:28:22 -0400 Subject: [PATCH] Fix Patches --- src/equicordplugins/equicordHelper/index.tsx | 2 +- src/equicordplugins/timezones/index.tsx | 2 +- src/plugins/_api/badges/index.tsx | 2 +- src/plugins/_api/messageDecorations/index.tsx | 2 +- src/plugins/decor/index.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index 54b79e9e1..87cec07b1 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -206,7 +206,7 @@ export default definePlugin({ }, // Force Role Icon { - find: "Message Username", + find: '"role-icon-children"', predicate: () => settings.store.forceRoleIcon, replacement: { match: /(?<=\}\):null\].{0,150}\?2:)0(?=\})/, diff --git a/src/equicordplugins/timezones/index.tsx b/src/equicordplugins/timezones/index.tsx index ae5d08995..158be77f9 100644 --- a/src/equicordplugins/timezones/index.tsx +++ b/src/equicordplugins/timezones/index.tsx @@ -271,7 +271,7 @@ export default definePlugin({ } }, { - find: '"Message Username"', + find: '"role-icon-children"', replacement: { // thanks https://github.com/Syncxv/vc-timezones/pull/4 match: /(?<=isVisibleOnlyOnHover.+?)id:.{1,11},timestamp.{1,50}}\),/, diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index cd366010c..4b743a478 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -138,7 +138,7 @@ export default definePlugin({ replace: "...$1.props,$&" }, { - match: /(?<=forceOpen:.{0,40}?\i\((\i)\.id\).{0,100}?)children:/, + match: /(?<=__unsupportedReactNodeAsText:\i,forceOpen:.{0,40}?)children:(?=.{0,5}\$\{(\i)\.id\})/, replace: "children:$1.component?$self.renderBadgeComponent({...$1}) :" }, // handle onClick and onContextMenu diff --git a/src/plugins/_api/messageDecorations/index.tsx b/src/plugins/_api/messageDecorations/index.tsx index 590e50bd7..6d6dec25d 100644 --- a/src/plugins/_api/messageDecorations/index.tsx +++ b/src/plugins/_api/messageDecorations/index.tsx @@ -30,7 +30,7 @@ export default definePlugin({ patches: [ { - find: '"Message Username"', + find: '"role-icon-children"', replacement: { match: /#{intl::GUILD_COMMUNICATION_DISABLED_BOTTOM_SHEET_TITLE}.+?renderPopout:.+?(?=\])/, replace: "$&,Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0])" diff --git a/src/plugins/decor/index.tsx b/src/plugins/decor/index.tsx index ea6a1e610..0eb044f19 100644 --- a/src/plugins/decor/index.tsx +++ b/src/plugins/decor/index.tsx @@ -97,7 +97,7 @@ export default definePlugin({ ] }, ...[ - '"Message Username"', // Messages + '"role-icon-children"', // Messages "#{intl::COLLECTIBLES_NAMEPLATE_PREVIEW_A11Y}", // Nameplate preview "#{intl::COLLECTIBLES_PROFILE_PREVIEW_A11Y}", // Avatar preview ].map(find => ({