From 4568165b82f7037724318c60f6a0f7ccbec0d7e9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 1 Dec 2025 21:05:12 +0100 Subject: [PATCH] File uploads: try form.getBuffer() --- src/util/util/cdn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util/cdn.ts b/src/util/util/cdn.ts index 01f03fc19..fe4781b9d 100644 --- a/src/util/util/cdn.ts +++ b/src/util/util/cdn.ts @@ -42,7 +42,7 @@ export async function uploadFile( ...form.getHeaders(), }, method: "POST", - body: form, + body: form.getBuffer(), }, ); const result = (await response.json()) as Attachment;