added emoji support (#503)

This commit is contained in:
Zman840
2016-08-06 17:29:17 -05:00
committed by abal
parent 0a648e80c9
commit c0ef815f9d
7 changed files with 145 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ exports.__esModule = true;
var Constants = {};
var API = Constants.API = "https://discordapp.com/api";
var CDN = Constants.CDN = "https://cdn.discordapp.com";
var Endpoints = Constants.Endpoints = {
// general endpoints
@@ -26,6 +27,11 @@ var Endpoints = Constants.Endpoints = {
return API + "/invite/" + id;
},
// emojis
EMOJI: function EMOJI(emojiID) {
return CDN + "/emojis/" + emojiID + ".png";
},
// servers
SERVERS: API + "/guilds",
SERVER: function SERVER(serverID) {