-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.tsx
More file actions
42 lines (37 loc) · 1.12 KB
/
index.tsx
File metadata and controls
42 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { checkUpdate } from "./versionCheck";
export default definePlugin({
name: "PluginRepo",
description: "Adds a repo containing Third-Party Plugins to download.",
authors: [Devs.ScattrdBlade],
required: false,
patches: [
{
find: "restartPlugin",
replacement: {
match: /restartPlugin/,
replace: ""
}
}
],
async start() {
await checkUpdate();
const customSettingsSections = (
Vencord.Plugins.plugins.Settings as any as {
customSections: ((ID: Record<string, unknown>) => any)[];
}
).customSections;
customSettingsSections.push(() => ({
section: "PluginRepo",
label: "Plugin Repo",
element: require("./Components/PluginsRepoTab").default,
className: "vc-plugin0-repo",
}));
}
});