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