PluginLibrary
This is the documentation for Zere's Plugin Library. I recommend going through the namespaces located on the right hand side so you can get an idea of how the library is organized. From the namespaces you can get to the classes, members, and objects of each. All of those will have their own page with all the relevant functions and member functions documented with brief explanations for them.
If you are looking for some initial information on how to get started with the library check out: Getting Started
What's New in 2.0.0?
Added
- Replacement popout opener available at
Popouts.openPopout. (Thanks Strencher!) - New color picker component (
Components.ColorPicker) for settings or general use. (Thanks Strencher!) - Webpack chunk listener (
WebpackModules.addListener), useful for patching lazy loaded components. (Thanks Strencher!)
Changed
- The old
EmulatedTooltiphas taken over as theTooltipmodule. DiscordContextMenuis now aliased toContextMenuon the library.PluginUtilitiesmodule was deprecated. Some functions moved places in the library. Please see the docs for the module for alternatives.Screenstruct was deprecated, the values can now be found onDOMTools.
Removed
- All deprecated items have been removed (enumerated below).
- Remote library is no longer supported at all.
DiscordAPImodule has been entirely removed.- Old
ContextMenuusing DOM manipulation has been removed. DOMToolsno longer pollutes theHTMLElementprototype.Utilities.fileExistsandUtilities.readFilewere removed.Reflectionmodule was removed, soReactTools.Reflectwas as well.ReactComponents.HelpersandReactComponents.AutoPatcherwere both removed, were not meant for plugin use anyways.
Fixed
DiscordContextMenu.getDiscordMenu()now works again.- Changelog modals work again.
- Toasts have returned to their usual position.
SettingFielduses the correct layer container.- Keybind settings work again.
- Dropdowns work again. (Thanks Qb!)
Popouts.showUserPopout()works again.