Add support for more OAuth features (#1203)

This commit is contained in:
Gus Caplan
2017-02-22 14:09:40 -06:00
committed by Amish Shah
parent d09dfa4c37
commit 61e12c637b
6 changed files with 67 additions and 37 deletions

View File

@@ -158,7 +158,7 @@ const Endpoints = exports.Endpoints = {
webhook: (webhookID, token) => `${API}/webhooks/${webhookID}${token ? `/${token}` : ''}`,
// oauth
myApplication: `${API}/oauth2/applications/@me`,
oauth2Application: (appID) => `${API}/oauth2/applications/${appID}`,
getApp: (id) => `${API}/oauth2/authorize?client_id=${id}`,
// emoji