remove unnecessary codeblocks and refresh tests.

This commit is contained in:
fzzinchemical
2025-04-15 17:58:19 +02:00
parent f9a8650243
commit 769693f87b
3 changed files with 11 additions and 71 deletions

View File

@@ -10,33 +10,6 @@ export type PostRequestParameters = {
page?: string| null| undefined,
}
// export async function drop() {
// try {
// const response = await requestJSON<ImageResponse[]>(`${postUrl}&limit=1`);
// const img = response[0];
// if (img === undefined) throw Error("An undefined Array was given!");
// return new Embed(
// `ID: ${img.id}`,
// img.sample_url,
// new EmbedAuthor(img.owner),
// // [new EmbedField("Tags", img.tags, true)],
// new EmbedImage(img.file_url, img.height, img.width),
// );
// } catch (e) {
// console.error((e as Error).message);
// return new Embed(
// "Error Message",
// "https://gifdb.com/images/thumbnail/nuh-uh-demon-slayer-girl-hm7q3hqa4lnqyl6d.gif",
// new EmbedAuthor("fzzinChemical"),
// new EmbedImage(
// "https://gifdb.com/images/thumbnail/nuh-uh-demon-slayer-girl-hm7q3hqa4lnqyl6d.gif",
// 250,
// 250,
// ),
// );
// }
// }
export async function requestWorker(postRequestParams: PostRequestParameters) {
const embeds = [];
try {