fix: 🐛 fix headers on discord
This commit is contained in:
parent
1118e1a712
commit
080af8aecc
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue