fix: 🐛 fix headers on discord

This commit is contained in:
May 2024-11-21 20:14:14 -08:00
parent 1118e1a712
commit 080af8aecc
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -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": `"Google Chrome";v="${browser_version_short}", "Chromium";v="${browser_version_short}", "Not=A?Brand";v="24"`,
"sec-ch-ua-mobile": "?0", "sec-ch-ua-mobile": "?0",
Priority: "u=0", Priority: "u=0",
Referer: "https://discord.com/channels/@me/",
Origin: "https://discord.com",
}, },
referrer: "https://discord.com/channels/@me/",
body: JSON.stringify({ body: JSON.stringify({
avatar: `data:${avatar.type};base64,${Buffer.from( avatar: `data:${avatar.type};base64,${Buffer.from(
await avatar.arrayBuffer() await avatar.arrayBuffer()