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:
parent
02b56940cf
commit
476a6b0ac3
2 changed files with 27 additions and 0 deletions
23
src/equicordplugins/stopAutoUnread/index.ts
Normal file
23
src/equicordplugins/stopAutoUnread/index.ts
Normal 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;"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue