Skip to content

Instantly share code, notes, and snippets.

@dooderstem
Forked from rauenzi/ExamplePlugin.plugin.js
Last active July 10, 2023 00:58
Show Gist options
  • Save dooderstem/c3f94395d88e81165ac6649883717b94 to your computer and use it in GitHub Desktop.
Save dooderstem/c3f94395d88e81165ac6649883717b94 to your computer and use it in GitHub Desktop.
Plugin template for BetterDiscord v1
/**
* @name ExamplePlugin
* @author YourName
* @description Describe the basic functions. Maybe a support server link.
* @version 0.0.1
* @invite inviteCode
* @authorId 51512151151651
* @authorLink https://twitter.com/Whoever
* @donate https://paypal.me/
* @patreon https://patreon.com/
* @website https://github.com/rauenzi/BetterDiscordApp
* @source https://gist.github.com/rauenzi/e5f4d02fc3085a53872b0236cd6f8225
*/
module.exports = class ExamplePlugin {
load() {} // Optional function. Called when the plugin is loaded in to memory
start() {} // Required function. Called when the plugin is activated (including after reloads)
stop() {} // Required function. Called when the plugin is deactivated
observer(changes) {} // Optional function. Observer for the `document`. Better documentation than I can provide is found here: <https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment