From 1049a1d70af19880a083b9912e6fc136a6a9aea1 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Fri, 29 Jul 2016 01:17:19 -0700 Subject: [PATCH] Add OAuth Application Endpoint constant --- lib/Constants.js | 3 +++ src/Constants.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/Constants.js b/lib/Constants.js index bc2f9b89e..2178a927d 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -14,6 +14,9 @@ var Endpoints = Constants.Endpoints = { ME_SERVER: function ME_SERVER(serverID) { return Endpoints.ME + "/guilds/" + serverID; }, + OAUTH2_APPLICATION: function OAUTH2_APPLICATION(appID) { + return API + "/oauth2/applications/" + appID; + }, ME_NOTES: API + "/users/@me/notes", GATEWAY: API + "/gateway", AVATAR: function AVATAR(userID, avatar) { diff --git a/src/Constants.js b/src/Constants.js index 85feabf2e..0f8020665 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -11,6 +11,7 @@ const Endpoints = Constants.Endpoints = { ME: `${API}/users/@me`, ME_CHANNELS: `${API}/users/@me/channels`, ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`, + OAUTH2_APPLICATION: (appID) => `${API}/oauth2/applications/${appID}`, ME_NOTES: `${API}/users/@me/notes`, GATEWAY: `${API}/gateway`, AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,