mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
use v8 api
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user