From ef80e2a91021e311bded37e8b63f178e433f25af Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 16 Apr 2026 22:40:39 +0200 Subject: [PATCH 1/5] MessageLogger: fix 'Remove Message History' not working --- src/plugins/messageLogger/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index 5988fa201..ca4849bd9 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -93,7 +93,7 @@ const patchMessageContextMenu: NavContextMenuPatchCallback = (children, props) = mlDeleted: true }); } else { - message.editHistory = []; + updateMessage(channel_id, id, { editHistory: [] }); } }} /> From 1c373f72818fc46f4b82cac358d9cb139a49e03b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 16 Apr 2026 22:48:12 +0200 Subject: [PATCH 2/5] fix AccountPanelServerProfile --- src/plugins/accountPanelServerProfile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/accountPanelServerProfile/index.tsx b/src/plugins/accountPanelServerProfile/index.tsx index 311988dea..4ba38b63b 100644 --- a/src/plugins/accountPanelServerProfile/index.tsx +++ b/src/plugins/accountPanelServerProfile/index.tsx @@ -72,7 +72,7 @@ export default definePlugin({ group: true, replacement: [ { - match: /(\.AVATAR,children:.+?renderPopout:(\i)=>){(.+?)}(?=,position)(?<=currentUser:(\i).+?)/, + match: /(\.AVATAR,children:.+?renderPopout:\((\i),\i\)=>)\{(.+?)\}(?=,position)(?<=currentUser:(\i).+?)/, replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})` }, { From afe435e847792e98abecbae5121bb23918fca6d3 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 16 Apr 2026 23:00:34 +0200 Subject: [PATCH 3/5] fix visual issues with Vencord Settings modals --- src/components/settings/tabs/BaseTab.tsx | 13 +++++++++---- src/components/settings/tabs/styles.css | 8 ++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/settings/tabs/BaseTab.tsx b/src/components/settings/tabs/BaseTab.tsx index b4c0ebb53..17a2e8025 100644 --- a/src/components/settings/tabs/BaseTab.tsx +++ b/src/components/settings/tabs/BaseTab.tsx @@ -16,9 +16,10 @@ * along with this program. If not, see . */ +import { BaseText } from "@components/BaseText"; import ErrorBoundary from "@components/ErrorBoundary"; import { handleComponentFailed } from "@components/handleComponentFailed"; -import { ModalCloseButton, ModalContent, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal"; +import { ModalCloseButton, ModalContent, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal"; import { onlyOnce } from "@utils/onlyOnce"; import type { ComponentType, PropsWithChildren } from "react"; @@ -43,13 +44,17 @@ export function wrapTab(component: ComponentType, tab: string) { export function openSettingsTabModal(Tab: ComponentType) { try { openModal(wrapTab((modalProps: ModalProps) => ( - + + + {Tab.displayName?.replace("SettingsTab", "") || "Settings"} + + + - - ), Tab.displayName || "Settings Tab")); + ), Tab.displayName || "SettingsTab")); } catch { handleSettingsTabError(); } diff --git a/src/components/settings/tabs/styles.css b/src/components/settings/tabs/styles.css index a0152abca..fd4aa8f46 100644 --- a/src/components/settings/tabs/styles.css +++ b/src/components/settings/tabs/styles.css @@ -61,10 +61,10 @@ height: 1.25em; } -.vc-settings-modal { - padding: 1.5em !important; +.vc-settings-modal-root { + background: var(--background-base-low); } -.vc-settings-modal-close { - float: right; +.vc-settings-modal { + padding-bottom: 1em; } \ No newline at end of file From 39044cd8e9ae4738164fe4914d5ba8b8c33f5ca7 Mon Sep 17 00:00:00 2001 From: ave <68245869+knownasivy@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:26:23 -0400 Subject: [PATCH 4/5] MessageLogger: fix collapsed delete text (#4073) --- src/plugins/messageLogger/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index ca4849bd9..0d364132e 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -533,8 +533,8 @@ export default definePlugin({ replace: '$&$1.type==="MESSAGE_GROUP_DELETED"||', }, { - match: /(\i).type===\i\.\i\.MESSAGE_GROUP_BLOCKED\?.*?:/, - replace: '$&$1.type==="MESSAGE_GROUP_DELETED"?$self.DELETED_MESSAGE_COUNT:', + match: /(\i).type===\i\.\i\.MESSAGE_GROUP_BLOCKED\?(\i)=.*?:/, + replace: '$&$1.type==="MESSAGE_GROUP_DELETED"?$2=$self.DELETED_MESSAGE_COUNT:', }, ], predicate: () => Settings.plugins.MessageLogger.collapseDeleted From 51b4748ba7489201f3efb378b6e6e2734f97e080 Mon Sep 17 00:00:00 2001 From: BoatFloater <111416210+BoatFloater@users.noreply.github.com> Date: Sat, 18 Apr 2026 07:39:47 +0900 Subject: [PATCH 5/5] ViewRaw: add message context menu option (#3990) --- src/plugins/viewRaw/index.tsx | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/plugins/viewRaw/index.tsx b/src/plugins/viewRaw/index.tsx index bfcb9ba40..269eb36ee 100644 --- a/src/plugins/viewRaw/index.tsx +++ b/src/plugins/viewRaw/index.tsx @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { NavContextMenuPatchCallback } from "@api/ContextMenu"; +import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu"; import { definePluginSettings } from "@api/Settings"; import { CodeBlock } from "@components/CodeBlock"; import { Divider } from "@components/Divider"; @@ -124,31 +124,36 @@ const settings = definePluginSettings({ { label: "Left Click to view the raw content.", value: "Left", default: true }, { label: "Right click to view the raw content.", value: "Right" } ] + }, + messageContextMenu: { + description: "Show in message context menu", + type: OptionType.BOOLEAN, + default: false } }); -function MakeContextCallback(name: "Guild" | "Role" | "User" | "Channel"): NavContextMenuPatchCallback { +function MakeContextCallback(name: "Guild" | "Role" | "User" | "Channel" | "Message"): NavContextMenuPatchCallback { return (children, props) => { const value = props[name.toLowerCase()]; if (!value) return; if (props.label === getIntlMessage("CHANNEL_ACTIONS_MENU_LABEL")) return; // random shit like notification settings + const isMessage = name === "Message"; + if (isMessage && !settings.store.messageContextMenu) return; - const lastChild = children.at(-1); - if (lastChild?.key === "developer-actions") { - const p = lastChild.props; - if (!Array.isArray(p.children)) - p.children = [p.children]; - - children = p.children; - } // typescript parser goes crazy if this is inline const id = `vc-view-${name.toLowerCase()}-raw`; - children.splice(-1, 0, + const action = isMessage + ? () => openViewRawModalMessage(value) + : () => openViewRawModal(JSON.stringify(value, null, 4), name); + + const devContainer = findGroupChildrenByChildId(`devmode-copy-id-${value.id}`, children); + + (devContainer ?? children).splice(-1, 0, openViewRawModal(JSON.stringify(value, null, 4), name)} + action={action} icon={CopyIcon} /> ); @@ -186,7 +191,8 @@ export default definePlugin({ "thread-context": MakeContextCallback("Channel"), "gdm-context": MakeContextCallback("Channel"), "user-context": MakeContextCallback("User"), - "dev-context": devContextCallback + "dev-context": devContextCallback, + "message": MakeContextCallback("Message"), }, messagePopoverButton: {