📚
Vendetta Plugin Docs
Contribute
  • ⏰Progress
  • â„šī¸Meta
    • 🔰Getting started
    • đŸ› ī¸Tools
  • 📚Guides
    • 📃Setting up
    • ã€Ŋī¸Local plugin development
    • 📜Manifest
    • 👂Plugin entrypoint
  • 🔰Examples
    • Self destruct plugin
Powered by GitBook
On this page

Was this helpful?

  1. Examples

Self destruct plugin

Coded by @nexpid

PreviousPlugin entrypoint

Last updated 1 year ago

Was this helpful?

{
  "name": "Self Destruct",
  "description": "A plugin that deletes itself when installed",
  "authors": [
    {
      "name": "nexpid",
      "id": "853550207039832084"
    }
  ],
  "main": "src/index.ts",
  "vendetta": {
    "icon": "placeholder"
  }
}
import { id } from "@vendetta/plugin";
import { removePlugin } from "@vendetta/plugins";

export const onLoad = () => removePlugin(id);
🔰
Source