new plugin: StopAutoUnread (#1171)

* StopAutoUnread: Add plugin

* Update index.ts

* Update index.ts

---------

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
SobakinTech 2026-06-12 23:53:18 +03:00 • committed by GitHub
parent 02b56940cf
commit 476a6b0ac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View file

@ -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;"
}
}
]
});

View file

@ -1346,6 +1346,10 @@ export const EquicordDevs = Object.freeze({
name: "pandaptable", name: "pandaptable",
id: 97153209843335168n id: 97153209843335168n
}, },
SobakinTech: {
name: "sobakintech",
id: 745203026335236178n
},
} satisfies Record<string, Dev>); } satisfies Record<string, Dev>);
// iife so #__PURE__ works correctly // iife so #__PURE__ works correctly