Create a gist now

Instantly share code, notes, and snippets.

@Jiiks /bdpt.js Secret
Last active May 12, 2017

What would you like to do?
BetterDiscord plugin template
//META{"name":"testPlugin"}*//
var testPlugin = function () {};
testPlugin.prototype.start = function () {
};
testPlugin.prototype.load = function () {
};
testPlugin.prototype.unload = function () {}
;
testPlugin.prototype.stop = function () {
};
testPlugin.prototype.onMessage = function () {
//called when a message is received
};
testPlugin.prototype.onSwitch = function () {
//called when a server or channel is switched
};
testPlugin.prototype.observer = function (e) {
//raw MutationObserver event for each mutation
};
testPlugin.prototype.getSettingsPanel = function () {
return "<h3>Settings Panel</h3>";
};
testPlugin.prototype.getName = function () {
return "Test Plugin";
};
testPlugin.prototype.getDescription = function () {
return "Test Plugin";
};
testPlugin.prototype.getVersion = function () {
return "0.1.0";
};
testPlugin.prototype.getAuthor = function () {
return "Jiiks";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment