Create a gist now

Instantly share code, notes, and snippets.

@Jiiks /bdpt.js Secret
Last active Jun 6, 2018

Embed
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";
};
@davidovski

This comment has been minimized.

Show comment
Hide comment
@davidovski

davidovski Oct 28, 2017

this is very handy :D

this is very handy :D

@CoolJoe2002

This comment has been minimized.

Show comment
Hide comment
@CoolJoe2002

CoolJoe2002 Mar 1, 2018

''''''''''''''''''''''

''''''''''''''''''''''

@gco360

This comment has been minimized.

Show comment
Hide comment
@gco360

gco360 Jun 6, 2018

whats the use of this code

gco360 commented Jun 6, 2018

whats the use of this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment