From 208aa05e9a7dec9a2efd7f3f127c40a89e3e9a02 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 26 Mar 2025 07:06:06 -0400 Subject: [PATCH] Drop DeadMembers --- README.md | 3 +- src/equicordplugins/deadMembers/index.tsx | 62 ----------------------- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 src/equicordplugins/deadMembers/index.tsx diff --git a/README.md b/README.md index 7c8a3cf2..22173079 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch ### Extra included plugins
-164 additional plugins +163 additional plugins ### All Platforms - AllCallTimers by MaxHerbold & D3SOX @@ -46,7 +46,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - CuteNekos by echo - CutePats by thororen - DecodeBase64 by ThePirateStoner -- DeadMembers by Kyuuhachi - Demonstration by Samwich - DisableAnimations by S€th - DisableCameras by Joona diff --git a/src/equicordplugins/deadMembers/index.tsx b/src/equicordplugins/deadMembers/index.tsx deleted file mode 100644 index 00392f3b..00000000 --- a/src/equicordplugins/deadMembers/index.tsx +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 { ChannelStore, GuildMemberStore, useStateFromStores } from "@webpack/common"; - -export default definePlugin({ - name: "DeadMembers", - description: "Shows when the sender of a message has left the guild", - authors: [Devs.Kyuuhachi], - - patches: [ - { - find: '.BADGES=1]="BADGES"', - replacement: { - match: /(\i)=\{className:\i.username,style:.*?onContextMenu:\i,children:.*?\};/, - replace: "$&$1.children=$self.wrapMessageAuthor(arguments[0],$1.children);" - } - }, - { - find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}", - replacement: { - match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\i:void 0\)\()\i/, - replace: "$self.wrapForumAuthor({...$1,$2},$&)" - } - }, - ], - - wrapMessageAuthor({ message }, text) { - const channel = ChannelStore.getChannel(message.channel_id); - return message.webhookId - ? text - : ; - }, - - wrapForumAuthor({ channel, user }, text) { - return !user - ? text - : ; - }, -}); - - -function DeadIndicator({ channel, userId, text }) { - const isMember = useStateFromStores( - [GuildMemberStore], - () => GuildMemberStore.isMember(channel?.guild_id, userId), - ); - return channel?.guild_id && !isMember ? {text} : text; -}