2015-12-11 05:49:40 +01:00
|
|
|
/* BetterDiscordApp API for Plugins
|
|
|
|
* Version: 1.0
|
|
|
|
* Author: Jiiks | http://jiiks.net
|
|
|
|
* Date: 11/12/2015
|
|
|
|
* Last Update: 11/12/2015
|
|
|
|
* https://github.com/Jiiks/BetterDiscordApp
|
|
|
|
*
|
|
|
|
* Plugin Template: https://gist.github.com/Jiiks/71edd5af0beafcd08956
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//Returns currrent BrowserWindow https://github.com/atom/electron/blob/master/docs/api/browser-window.md
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.getBrowserWindow = function() {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Joins a server
|
|
|
|
//code = server invite code
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.joinServer = function(code) {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Inject CSS to document head
|
|
|
|
//id = id of element
|
|
|
|
//css = custom css
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.injectCSS = function(id, css) {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Clear css/remove any element
|
|
|
|
//id = id of element
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.clearCSS = function(id) {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Get another plugin
|
|
|
|
//name = name of plugin
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.getPlugin = function(name) {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Get ipc for reason
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.getIpc = function() {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//Get BetterDiscord Core
|
2015-12-11 05:53:23 +01:00
|
|
|
BdApi.getCore = function() {
|
2015-12-11 05:49:40 +01:00
|
|
|
|
|
|
|
};
|