From 0f4bdddde40fdcfe709abd39bb205048c4f107c9 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:44:30 -0400 Subject: [PATCH] FullUserInChatbox --- .../fullUserInChatbox/index.tsx | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/equicordplugins/fullUserInChatbox/index.tsx diff --git a/src/equicordplugins/fullUserInChatbox/index.tsx b/src/equicordplugins/fullUserInChatbox/index.tsx new file mode 100644 index 00000000..51e60676 --- /dev/null +++ b/src/equicordplugins/fullUserInChatbox/index.tsx @@ -0,0 +1,38 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { Devs } from "@utils/constants"; +import definePlugin from "@utils/types"; +import { findComponentByCodeLazy } from "@webpack"; + +const NormalMessageComponent = findComponentByCodeLazy(".USER_MENTION)"); + +export default definePlugin({ + name: "FullUserInChatbox", + description: "Puts the full user mention object in the chatbox", + authors: [Devs.sadan], + + patches: [ + { + find: "UNKNOWN_ROLE_PLACEHOLDER]", + replacement: { + match: /(hidePersonalInformation.*?)return/, + replace: "$1return $self.patchChatboxMention(arguments[0]);" + } + } + ], + + patchChatboxMention(props: any) { + return ; + }, +});