mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Update discord.ts
This commit is contained in:
committed by
GitHub
parent
2dbf3dfd8b
commit
40059918bc
@@ -1,15 +1,8 @@
|
|||||||
let API_VERSION = "v8";
|
|
||||||
|
|
||||||
export const baseEndpoints = {
|
export const baseEndpoints = {
|
||||||
/** Although, the version can be defaulted, keep the v8 as it can be changed to test newer versions when necessary. */
|
BASE_URL: `https://discord.com/api/V8`,
|
||||||
BASE_URL: `https://discord.com/api/${API_VERSION}`,
|
|
||||||
CDN_URL: "https://cdn.discordapp.com",
|
CDN_URL: "https://cdn.discordapp.com",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function changeAPIVersion(number = 7) {
|
|
||||||
API_VERSION = `v${number}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
const GUILDS_BASE = (id: string) => `${baseEndpoints.BASE_URL}/guilds/${id}`;
|
const GUILDS_BASE = (id: string) => `${baseEndpoints.BASE_URL}/guilds/${id}`;
|
||||||
|
|
||||||
export const endpoints = {
|
export const endpoints = {
|
||||||
|
|||||||
Reference in New Issue
Block a user