mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add OAuth Application Endpoint constant
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user