mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix: Remove outdated documentation logic (#11203)
fix: remove unused stuff
This commit is contained in:
@@ -18,11 +18,11 @@ export const PACKAGES = [
|
||||
];
|
||||
|
||||
export async function fetchVersions(pkg: string) {
|
||||
const response = await request(`https://docs.discordjs.dev/api/info?package=${pkg}`);
|
||||
const response = await request(`https://discord.js.org/api/docs/versions?packageName=${pkg}`);
|
||||
return response.body.json() as Promise<string[]>;
|
||||
}
|
||||
|
||||
export async function fetchVersionDocs(pkg: string, version: string) {
|
||||
const response = await request(`https://docs.discordjs.dev/docs/${pkg}/${version}.api.json`);
|
||||
const response = await request(`https://r2-docs.discordjs.dev/${pkg}/${version}.json`);
|
||||
return response.body.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user