diff options
author | megumin <megumin.bakaretsurie@gmail.com> | 2022-10-17 22:46:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 23:46:52 +0200 |
commit | 9d6021f0b985ca09fded65af87166c1f7a70141a (patch) | |
tree | fe6245f03a335007e92cadc58268a827ac4c5933 /docs | |
parent | 5a18292d929e35a2d848ff4e1472229d36cd0745 (diff) | |
download | Vencord-9d6021f0b985ca09fded65af87166c1f7a70141a.tar.gz Vencord-9d6021f0b985ca09fded65af87166c1f7a70141a.tar.bz2 Vencord-9d6021f0b985ca09fded65af87166c1f7a70141a.zip |
feat: gitignored src/userplugins directory (#112)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/2_PLUGINS.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/2_PLUGINS.md b/docs/2_PLUGINS.md index a80afa6..6ac4b24 100644 --- a/docs/2_PLUGINS.md +++ b/docs/2_PLUGINS.md @@ -6,7 +6,9 @@ You don't need to run `pnpm build` every time you make a change. Instead, use `p ## Plugin Entrypoint -1. Create a folder in `src/plugins/` with the name of your plugin. For example, `src/plugins/epicPlugin/` - All of your plugin files will go here. +> If it doesn't already exist, create a folder called `userplugins` in the `src` directory of this repo. + +1. Create a folder in `src/userplugins/` with the name of your plugin. For example, `src/userplugins/epicPlugin/` - All of your plugin files will go here. 2. Create a file in that folder called `index.ts` @@ -20,7 +22,7 @@ export default definePlugin({ description: "This plugin is absolutely epic", authors: [ { - id: "your discord user id goes here", + id: 12345n, name: "Your Name", }, ], @@ -33,6 +35,8 @@ export default definePlugin({ Change the name, description, and authors to your own information. +Replace `12345n` with your user ID ending in `n` (e.g., `545581357812678656n`). If you don't want to share your Discord account, use `0n` instead! + ## How Plugins Work In Vencord Vencord uses a different way of making mods than you're used to. @@ -97,7 +101,9 @@ abc.isStaff = function () { The match value _can_ be a string, rather than regex, however usually regex will be better suited, as it can work with unknown values, whereas strings must be exact matches. -Once you've made your plugin, make sure you run `pnpm lint` and make sure your code is nice and clean, and then open a PR on github :) +Once you've made your plugin, make sure you run `pnpm test` and make sure your code is nice and clean! + +If you want to publish your plugin into the Vencord repo, move your plugin from `src/userplugins` into the `src/plugins` folder and open a PR! > **Warning** > Make sure you've read [CONTRIBUTING.md](../CONTRIBUTING.md) before opening a PR |