From 080af8aecc76bc500857bb94832832c592b63076 Mon Sep 17 00:00:00 2001 From: split Date: Thu, 21 Nov 2024 20:14:14 -0800 Subject: [PATCH] fix: :bug: fix headers on discord --- src/translators/discord.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/translators/discord.ts b/src/translators/discord.ts index 830e400..c71ccae 100644 --- a/src/translators/discord.ts +++ b/src/translators/discord.ts @@ -56,8 +56,9 @@ export default translator({ "sec-ch-ua": `"Google Chrome";v="${browser_version_short}", "Chromium";v="${browser_version_short}", "Not=A?Brand";v="24"`, "sec-ch-ua-mobile": "?0", Priority: "u=0", + Referer: "https://discord.com/channels/@me/", + Origin: "https://discord.com", }, - referrer: "https://discord.com/channels/@me/", body: JSON.stringify({ avatar: `data:${avatar.type};base64,${Buffer.from( await avatar.arrayBuffer()