mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
added emoji support (#503)
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user