From 476a6b0ac36685ec0b4403ea9d5cf8d51bf8fcb0 Mon Sep 17 00:00:00 2001 From: SobakinTech Date: Fri, 12 Jun 2026 23:53:18 +0300 Subject: [PATCH] new plugin: StopAutoUnread (#1171) * StopAutoUnread: Add plugin * Update index.ts * Update index.ts --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/stopAutoUnread/index.ts | 23 +++++++++++++++++++++ src/utils/constants.ts | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 src/equicordplugins/stopAutoUnread/index.ts diff --git a/src/equicordplugins/stopAutoUnread/index.ts b/src/equicordplugins/stopAutoUnread/index.ts new file mode 100644 index 000000000..9f217d604 --- /dev/null +++ b/src/equicordplugins/stopAutoUnread/index.ts @@ -0,0 +1,23 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "StopAutoUnread", + description: 'Stops Discord from automatically bumping a channels notification setting to "All Messages"', + authors: [EquicordDevs.SobakinTech], + patches: [ + { + find: "}maybeAutoUpgradeChannel(", + replacement: { + match: /maybeAutoUpgradeChannel\(\i\){/, + replace: "$&return !1;" + } + } + ] +}); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 20d0677d1..21b2e9e6d 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1346,6 +1346,10 @@ export const EquicordDevs = Object.freeze({ name: "pandaptable", id: 97153209843335168n }, + SobakinTech: { + name: "sobakintech", + id: 745203026335236178n + }, } satisfies Record); // iife so #__PURE__ works correctly