add DMKeeper plugin (#858)
Co-Authored-By: thororen1234 <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
19dc4ab68d
commit
e453ad296f
2 changed files with 28 additions and 1 deletions
23
src/equicordplugins/dmKeeper/index.ts
Normal file
23
src/equicordplugins/dmKeeper/index.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2026 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: "DMKeeper",
|
||||
description: "Prevents Discord from automatically hiding old DM conversations from your sidebar.",
|
||||
authors: [EquicordDevs.Awizz],
|
||||
patches: [
|
||||
{
|
||||
find: "getSortedPrivateChannels(){",
|
||||
replacement: {
|
||||
match: /(\i)\.length>(\i)&&(\i)\.shift\(\)/,
|
||||
replace: "false"
|
||||
}
|
||||
}
|
||||
],
|
||||
});
|
||||
|
|
@ -1263,7 +1263,11 @@ export const EquicordDevs = Object.freeze({
|
|||
Leon135: {
|
||||
name: "Leon135",
|
||||
id: 309275452231385088n,
|
||||
}
|
||||
},
|
||||
Awizz: {
|
||||
name: "Awizz",
|
||||
id: 1267951485585461288n,
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
// iife so #__PURE__ works correctly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue