newPluginsManager/index.tsx

29 lines
858 B
TypeScript
Raw Permalink Normal View History

2024-07-11 08:24:32 -04:00
/*
* 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";
2024-08-22 23:53:51 -04:00
import * as KnownSettings from "./knownSettings";
import { KNOWN_PLUGINS_LEGACY_DATA_KEY, KNOWN_SETTINGS_DATA_KEY } from "./knownSettings";
2024-07-11 08:24:32 -04:00
import { openNewPluginsModal } from "./NewPluginsModal";
export default definePlugin({
name: "NewPluginsManager",
description: "Utility that notifies you when new plugins are added to Vencord",
authors: [Devs.Sqaaakoi],
2024-08-22 23:53:51 -04:00
enabledByDefault: true, // This is intentional.
2024-07-11 08:24:32 -04:00
flux: {
async POST_CONNECTION_OPEN() {
openNewPluginsModal();
}
},
openNewPluginsModal,
2024-08-22 23:53:51 -04:00
KNOWN_PLUGINS_LEGACY_DATA_KEY,
KNOWN_SETTINGS_DATA_KEY,
KnownSettings
2024-07-11 08:24:32 -04:00
});