Skip to content

Commit

Permalink
feat(rest): api base routes (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
  • Loading branch information
didinele and vladfrangu committed Feb 12, 2021
1 parent 70bfe9f commit 466fa95
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"files.eol": "\n"
}
"files.eol": "\n",
"typescript.tsdk": "node_modules/typescript/lib"
}
14 changes: 14 additions & 0 deletions v8/rest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,20 @@ export const Routes = {
},
};

export const RouteBases = {
api: 'https://discord.com/api',
cdn: 'https://cdn.discordapp.com',
invite: 'https://discord.gg',
template: 'https://discord.new',
gift: 'https://discord.gift',
} as const;

/**
* Freeze bases object
* @internal
*/
Object.freeze(RouteBases);

export const OAuth2Routes = {
authorizationURL: `https://discord.com/api/v${APIVersion}/oauth2/authorize`,
tokenURL: `https://discord.com/api/v${APIVersion}/oauth2/token`,
Expand Down

0 comments on commit 466fa95

Please sign in to comment.