-
Notifications
You must be signed in to change notification settings - Fork 0
Developers
You can code plugins on: NodeJS and JavaScript
You can code themes on: CSS, SCSS and CSS3
- /plugins/your_plugin_name/main.js (For JavaScript plugins)
- /dcord_node_plugins/your_node_plugin_name/main.js (For NodeJS plugins)
- /themes/your_theme_name/main.css
❌ | Dragoncord API v1 is obsolete! Do not develop plugins until we have created the Dragoncord API v2.
The API is still incomplete and unstable
Get ready for bugs and many other problems
DragoncordAPI.injectCSS(styleString: String);
Injecting CSS
DragoncordAPI.setSplashTipTitle(tipTitleString: String);
Set tip title
DragoncordAPI.setSplashTip(tipString: String);
Set tip info
DragoncordAPI.showNotification(html: string, removeAfter = 6000);
Show notification in-app
DragoncordAPI.makeRequest(method: string, url: string, isDownload = false);
Make request to web-server
DragoncordAPI.loginByToken(token: string);
Login to account by token
DragoncordAPI.download(filename: string, text: string);
Download file
DragoncordAPI.download("example.txt", "hello world!");
This example (^^^) downloads file with name example.txt and with content hello world!
DragoncordAPI.getToken();
Get account token (ATTENTION: DO NOT SHOW YOUR DISCORD TOKEN TO ANYONE, NOT EVEN YOUR FRIENDS)
changeStatus(token, status);
Change status (online, idle, dnd, invisible)
Example (with getToken):
var token = DragoncordAPI.getToken();
DragoncordAPI.changeStatus(token, "idle");
This example changes your status to "idle"
Get Discord module
Can be used for plugin developers