[BetterDiscord] BetterAPI Plugin

Bluscream

Retired Staff
Contributor
Joined
May 8, 2015
Messages
959
Points
171
Location
Germany
This plugin is required by most of the plugins here, so if you want to use one of the plugins here, check the requirements first.
Name: BetterAPI Plugin
Description: Enhances the BetterDiscord Plugin API.
Author: Bluscream
Download: http://betterdiscord.net/ghdl?url=https://raw.githubusercontent.com/Bluscream/BetterDiscord-Plugins-and-Themes/master/plugins/0_BetterAPI.plugin.js
Source: https://github.com/Bluscream/BetterDiscord-Plugins-and-Themes/blob/master/src/plugins/0_BetterAPI.plugin.js
Installation:
  1. If you don't already have it, download and install Discord.
  2. If you don't already have it, download and install BetterDiscord.
  3. Save the 0_BetterAPI.js under "%appdata%\BetterDiscord\plugins\0_BetterAPI.js".
Currently available [BetterAPI](https://github.com/Bluscream/BetterDiscord/blob/master/plugins/0_BetterAPI.js) functions:
Code:
BetterAPI.log(dbg, "type", "pluginName", "msg");
BetterAPI.appendTo("link", "Element");
BetterAPI.enableTextSelection();
BetterAPI.enableAutoComplete();
BetterAPI.enableButtons();
BetterAPI.isNumber("string");
BetterAPI.isUID("string");
BetterAPI.makeFile("name", "content");
BetterAPI.getBackup();
BetterAPI.visit("href");
BetterAPI.getOwnID();
BetterAPI.getOwnName();
BetterAPI.getOwnAvatarID();
BetterAPI.getOwnAvatarURL();
BetterAPI.serverCount();
BetterAPI.userCount();
BetterAPI.onlineUserCount();
BetterAPI.offlineUserCount();
BetterAPI.getUserIdByName("name");
BetterAPI.getUserNameById(id);
BetterAPI.getUserAvatarID(id);
BetterAPI.getUserAvatarIDbyName("name");
BetterAPI.getUserAvatarURL(id);
BetterAPI.getUserAvatarURLbyName("name");
BetterAPI.getCurrentChannelName();
BetterAPI.getCurrentChannelID();
BetterAPI.getCurrentServerName();
BetterAPI.getCurrentServerID();
BetterAPI.getClientList();
BetterAPI.getClientNameList();
BetterAPI.getClientUIDList();
BetterAPI.addUserLabel("divID", "label", "<html>");
BetterAPI.addUserLink(divID, id1, href1, text1, [id2, href2, text2]);
BetterAPI.addUserButton("btn", "divID", "text");
BetterAPI.addLink("divID", "text", "href");
BetterAPI.addServerButton("divID", "text", "before/after");
BetterAPI.changeUserInfo("nickname", ["avatar" BetterAPI.getUserAvatarID(id)]);
https://github.com/VersatilityWerks/jAlert#quick-use-requires-jalert-functionsjs
https://github.com/fabien-d/alertify.js/wiki/How-to-Use#usage
https://github.com/craigmccoy/jquery-charcount#quick-documentation
https://github.com/afshinm/Json-to-HTML-Table#how-to-use
https://github.com/brandonaaron/livequery/blob/1.1.1/README.markdown#live-query
 
Last edited:

Top