Initial commit

This commit is contained in:
Vendicated
2023-04-19 23:58:28 +02:00
commit bc9989f075
12 changed files with 1203 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
import { definePluginSettings } from "@vencord/types/api/settings";
import definePlugin, { OptionType } from "@vencord/types/utils/types";
import { findStoreLazy } from "@vencord/types/webpack";
// This is already a webpack common so maybe don't search it again.
// just an example heh :3
const UserStore = findStoreLazy("UserStore") as typeof import("@vencord/types/webpack/common").UserStore;
const settings = definePluginSettings({
cuteSetting: {
type: OptionType.STRING,
description: "A very cute setting",
default: "so cute!"
}
});
definePlugin({
name: "MyExamplePlugin",
description: "Very cute plugin",
authors: [
{
name: "Me",
id: 1234567890n
}
],
settings,
patches: [],
start() {
console.log(this.name, "just started");
console.log(UserStore.getCurrentUser().username, "is", settings.store.cuteSetting);
},
stop() {
console.log(this.name, "just stopped");
}
});