From 742569fd9d946eea3e4ea9634f7fed9e7003cb4c Mon Sep 17 00:00:00 2001 From: Skillz Date: Wed, 16 Sep 2020 11:21:14 -0400 Subject: [PATCH] use v8 api --- src/constants/discord.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants/discord.ts b/src/constants/discord.ts index c4e970051..fe5678c1d 100644 --- a/src/constants/discord.ts +++ b/src/constants/discord.ts @@ -1,13 +1,13 @@ -let VERSION = "v7"; +let API_VERSION = "v8"; 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://discord.com/api/${VERSION}`, + BASE_URL: `https://discord.com/api/${API_VERSION}`, CDN_URL: "https://cdn.discordapp.com", }; export function changeAPIVersion(number = 7) { - VERSION = `v${number}`; + API_VERSION = `v${number}`; } const GUILDS_BASE = (id: string) => `${baseEndpoints.BASE_URL}/guilds/${id}`;