From 6e44b8c47ebf6a59caef130d58fb90a102a88479 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 20 Jan 2023 21:47:24 -0300 Subject: [PATCH] Fix Message Accessories API (#441) --- src/plugins/apiMessageAccessories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/apiMessageAccessories.ts b/src/plugins/apiMessageAccessories.ts index 11109beea..5bb13cfe1 100644 --- a/src/plugins/apiMessageAccessories.ts +++ b/src/plugins/apiMessageAccessories.ts @@ -25,7 +25,7 @@ export default definePlugin({ authors: [Devs.Cyn], patches: [ { - find: "_messageAttachmentToEmbedMedia", + find: ".Messages.REMOVE_ATTACHMENT_BODY", replacement: { match: /(.container\)?,children:)(\[[^\]]+\])(}\)\};return)/, replace: (_, pre, accessories, post) =>