Updated Creating Plugins (markdown)

Zack 2020-04-01 20:21:11 -04:00
parent 5349885215
commit b847c6fe3c
1 changed files with 4 additions and 5 deletions

@ -457,6 +457,9 @@ The following functions are available as a part of each `AddonAPI` object from `
## Properties
#### `folder`
String representing the resolved location of the user's addon folder.
## Methods
#### `isEnabled(name)`
@ -563,8 +566,4 @@ Zere's Plugin Library | https://github.com/rauenzi/BDPluginLibrary | https://r
## Developer Tools
Discord is an Electron app which is essentially Chromium, being as such you can access the Chrome developer tools with `Ctrl` + `Shift` + `i` on Windows or Linux and `Cmd` + `Opt` + `i` on macOS.
## Add namespaces to your events
When using jQuery and listening on events like `$(document).on('dblclick', ...)`, use a namespace such as `$(document).on('dblclick.myplugin', ...)` in order to easily unload all events with `$(document).off('dblclick.myplugin')` or `$(document).off('*.myplugin')` without affecting Discord and other plugins.
Discord is an Electron app which is essentially Chromium, being as such you can access the Chrome developer tools with `Ctrl` + `Shift` + `i` on Windows or Linux and `Cmd` + `Opt` + `i` on macOS.