From abcfd54a35bd767fc898a506a391587b7b7ad2ef Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:00:54 -0400 Subject: [PATCH] Fix Patches --- src/equicordplugins/betterShopPreview/index.tsx | 2 +- src/equicordplugins/youtubeDescription/index.tsx | 2 +- src/plugins/fixCodeblockGap/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/betterShopPreview/index.tsx b/src/equicordplugins/betterShopPreview/index.tsx index 08b19e94..b61d2633 100644 --- a/src/equicordplugins/betterShopPreview/index.tsx +++ b/src/equicordplugins/betterShopPreview/index.tsx @@ -67,7 +67,7 @@ export default definePlugin({ settings, patches: [ { - find: "default.Messages.COLLECTIBLES_SHOP})]}", + find: ".Messages.COLLECTIBLES_SHOP})]}", replacement: [{ match: /(children:\i.default.Messages.COLLECTIBLES_SHOP)}/, replace: "$&,$self.PreviewToggle()" diff --git a/src/equicordplugins/youtubeDescription/index.tsx b/src/equicordplugins/youtubeDescription/index.tsx index 493199d9..f18a5833 100644 --- a/src/equicordplugins/youtubeDescription/index.tsx +++ b/src/equicordplugins/youtubeDescription/index.tsx @@ -18,7 +18,7 @@ export default definePlugin({ authors: [Devs.arHSM], patches: [ { - find: ".default.Messages.SUPPRESS_ALL_EMBEDS", + find: ".Messages.SUPPRESS_ALL_EMBEDS", replacement: { match: /case (\i\.MessageEmbedTypes\.VIDEO):(case \i\.MessageEmbedTypes\.\i:)*break;default:(\i)=(?:(this\.renderDescription)\(\))\}/, replace: "$2 break; case $1: $3 = $self.ToggleableDescriptionWrapper({ embed: this.props.embed, original: $4.bind(this) }); break; default: $3 = $4() }" diff --git a/src/plugins/fixCodeblockGap/index.ts b/src/plugins/fixCodeblockGap/index.ts index 98590b40..033b7fda 100644 --- a/src/plugins/fixCodeblockGap/index.ts +++ b/src/plugins/fixCodeblockGap/index.ts @@ -13,7 +13,7 @@ export default definePlugin({ authors: [Devs.Grzesiek11], patches: [ { - find: ".default.Messages.DELETED_ROLE_PLACEHOLDER", + find: ".Messages.UNKNOWN_ROLE_PLACEHOLDER", replacement: { match: String.raw`/^${"```"}(?:([a-z0-9_+\-.#]+?)\n)?\n*([^\n][^]*?)\n*${"```"}`, replace: "$&\\n?",