mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +00:00
Add OAuth Application Endpoint constant
This commit is contained in:
parent
810059200c
commit
1049a1d70a
2 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ var Endpoints = Constants.Endpoints = {
|
||||||
ME_SERVER: function ME_SERVER(serverID) {
|
ME_SERVER: function ME_SERVER(serverID) {
|
||||||
return Endpoints.ME + "/guilds/" + serverID;
|
return Endpoints.ME + "/guilds/" + serverID;
|
||||||
},
|
},
|
||||||
|
OAUTH2_APPLICATION: function OAUTH2_APPLICATION(appID) {
|
||||||
|
return API + "/oauth2/applications/" + appID;
|
||||||
|
},
|
||||||
ME_NOTES: API + "/users/@me/notes",
|
ME_NOTES: API + "/users/@me/notes",
|
||||||
GATEWAY: API + "/gateway",
|
GATEWAY: API + "/gateway",
|
||||||
AVATAR: function AVATAR(userID, avatar) {
|
AVATAR: function AVATAR(userID, avatar) {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ const Endpoints = Constants.Endpoints = {
|
||||||
ME: `${API}/users/@me`,
|
ME: `${API}/users/@me`,
|
||||||
ME_CHANNELS: `${API}/users/@me/channels`,
|
ME_CHANNELS: `${API}/users/@me/channels`,
|
||||||
ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`,
|
ME_SERVER: (serverID) => `${Endpoints.ME}/guilds/${serverID}`,
|
||||||
|
OAUTH2_APPLICATION: (appID) => `${API}/oauth2/applications/${appID}`,
|
||||||
ME_NOTES: `${API}/users/@me/notes`,
|
ME_NOTES: `${API}/users/@me/notes`,
|
||||||
GATEWAY: `${API}/gateway`,
|
GATEWAY: `${API}/gateway`,
|
||||||
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,
|
AVATAR : (userID, avatar) => `${API}/users/${userID}/avatars/${avatar}.jpg`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue