Updated Creating Plugins (markdown)

Zack 2018-10-08 17:36:35 -04:00
parent a869b02f90
commit 59807dfacf
1 changed files with 12 additions and 0 deletions

@ -62,6 +62,13 @@ Called when the plugin is disabled.
These functions can be useful but aren't necessary for the plugin to load and function.
#### `getSettingsPanel()`
Called when the user clicks on the settings button for the plugin.
**@Returns** `{String|HTMLElement}` - either a valid string containing the html for the panel or an actual element to be injected into the settings panel.
***
#### `load()`
Called when the plugin is loaded regardless of if it is enabled or disabled.
@ -76,6 +83,11 @@ Called on every mutation that occurs on the `document`. For more information on
***
#### `onSwitch()`
Called every time the user navigates such as changing channel, changing servers, changing to friends list, etc.
***
# BdApi