mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fix Constants changes (#293)
This commit is contained in:
committed by
abalabahaha
parent
619139f871
commit
9322c0bbd7
@@ -8,7 +8,7 @@ var Endpoints = {
|
|||||||
LOGIN: API + "/auth/login",
|
LOGIN: API + "/auth/login",
|
||||||
LOGOUT: API + "/auth/logout",
|
LOGOUT: API + "/auth/logout",
|
||||||
ME: API + "/users/@me",
|
ME: API + "/users/@me",
|
||||||
ME: API + "/users/@me/channels",
|
ME_CHANNELS: API + "/users/@me/channels",
|
||||||
ME_SERVER: function ME_SERVER(serverID) {
|
ME_SERVER: function ME_SERVER(serverID) {
|
||||||
return Endpoints.ME + "/guilds/" + serverID;
|
return Endpoints.ME + "/guilds/" + serverID;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export const Endpoints = {
|
|||||||
LOGIN: `${API}/auth/login`,
|
LOGIN: `${API}/auth/login`,
|
||||||
LOGOUT: `${API}/auth/logout`,
|
LOGOUT: `${API}/auth/logout`,
|
||||||
ME: `${API}/users/@me`,
|
ME: `${API}/users/@me`,
|
||||||
ME: `${API}/users/@me/channels`,
|
ME_CHANNELS: `${API}/users/@me/channels`,
|
||||||
ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`,
|
ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`,
|
||||||
GATEWAY: `${API}/gateway`,
|
GATEWAY: `${API}/gateway`,
|
||||||
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,
|
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,
|
||||||
|
|||||||
Reference in New Issue
Block a user