From 169d652e43d1800abc42d8acb12679797cd9519b Mon Sep 17 00:00:00 2001 From: Skillz Date: Fri, 7 Feb 2020 15:59:41 -0500 Subject: [PATCH] constant endpoints to discord api --- constants/discord.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 constants/discord.ts diff --git a/constants/discord.ts b/constants/discord.ts new file mode 100644 index 000000000..6b85ffe20 --- /dev/null +++ b/constants/discord.ts @@ -0,0 +1,9 @@ +export const baseEndpoints = { + /** Although, the version can be defaulted, keep the v6 as it can be changed to test newer versions when necessary. */ + BASE_URL: "https://discordapp.com/api/v6", + CDN_URL: "https://cdn.discordapp.com", +} + +export const endpoints = { + GATEWAY_BOT: `${baseEndpoints.BASE_URL}/gateway/bot`, +}