This is a template for BetterDiscord plugins that uses TypeScript
This will allow you to use both ESM format as well as TypeScript, because why not?
The final build file will have all of your included files bundled as a CJS module for use in BetterDiscord.
- Run
npm install
- Modify
package.json
to fit your needs
- PAY ATTENTION TO THE
betterdiscord
OPTIONS
- Change the
getPluginName
return value in the./src/DiscordPlugin.ts
file.
Run npm run build
or npx esbuild esbuild.config.cjs
The final build file will be in the ./dist
folder.