Export requestJSON and requestRAW to core, formatting and adapting code and removing yandere code for update.

This commit is contained in:
fzzin
2025-04-08 16:27:58 +02:00
parent 8f903af37d
commit 1e8f195714
9 changed files with 70 additions and 147 deletions

View File

@@ -1,6 +1,7 @@
import { assert } from "@std/assert/assert";
import { ImageResponse, postUrl, requestJSON } from "./api.ts";
import { requestJSON } from "@root/structures/apiRequest.ts";
import { Embed, EmbedAuthor, EmbedImage } from "@root/structures/embeds.ts";
import { ImageResponse, postUrl } from "./api.ts";
const keys = ["limit", "id", "pid", "tags"] as const;
type PostKeys = typeof keys[number];