Prepare for upcoming leave/deleteServer separation (fix #198)

This commit is contained in:
abalabahaha
2016-03-06 13:14:15 -08:00
parent 4e58de8cd6
commit b5c200901b
6 changed files with 189 additions and 134 deletions

View File

@@ -6,6 +6,7 @@ export const Endpoints = {
LOGIN: `${API}/auth/login`,
LOGOUT: `${API}/auth/logout`,
ME: `${API}/users/@me`,
ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`,
GATEWAY: `${API}/gateway`,
USER_CHANNELS: (userID) => `${API}/users/${userID}/channels`,
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,