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

@@ -3,6 +3,7 @@
const Constants = {};
const API = Constants.API = "https://discordapp.com/api";
const CDN = Constants.CDN = "https://cdn.discordapp.com";
const Endpoints = Constants.Endpoints = {
// general endpoints
@@ -17,6 +18,9 @@ const Endpoints = Constants.Endpoints = {
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,
INVITE: (id) => `${API}/invite/${id}`,
// emojis
EMOJI: (emojiID) => `${CDN}/emojis/${emojiID}.png`,
// servers
SERVERS: `${API}/guilds`,
SERVER: (serverID) => `${Endpoints.SERVERS}/${serverID}`,