Updated Creating Plugins (markdown)
parent
9481df3221
commit
59deef5a9c
|
@ -4,7 +4,7 @@
|
|||
2. The file must be named as `pluginname.plugin.js`, the plugin name can be whatever you want.
|
||||
3. Plugin files require a special header ([[see this page for details|Plugin-and-Theme-METAs]])
|
||||
4. The name defined in the header must match the variable/classname
|
||||
5. Plugins must implement the [following functions](#required-functions): `getName`*, `getDescription`*, `getVersion`*, `getAuthor`*, `start` and `stop`. (*These functions are not needed if you add them to the META described in point 3)
|
||||
5. Plugins must implement the [following functions](#required-functions): `getName`^, `getDescription`^, `getVersion`^, `getAuthor`^, `start` and `stop`. (^These functions are not needed if you add them to the META described in point 3)
|
||||
Optionally, you may implement `getSettingsPanel`, `load`, `observer`, and `onSwitch`. More details on each function below.
|
||||
6. Plugins can make use of the [`BdApi`](#bdapi) object described [below](#bdapi).
|
||||
7. Plugins can make use of any node modules or Discord modules (through webpack).
|
||||
|
|
Loading…
Reference in New Issue