Compare commits
2 commits
1f6d602109
...
906e0a808e
Author | SHA1 | Date | |
---|---|---|---|
May | 906e0a808e | ||
May | e797910929 |
|
@ -14,7 +14,7 @@ export default translator({
|
||||||
|
|
||||||
const browser_version = "113.0.5666.197",
|
const browser_version = "113.0.5666.197",
|
||||||
browser_version_short = browser_version.split(".")[1],
|
browser_version_short = browser_version.split(".")[1],
|
||||||
client_build_number = 347115, // todo: figure out how to get this?
|
client_build_number = "347115", // todo: figure out how to get this?
|
||||||
ua = `Mozilla/5.0 (Windows NT 10.0; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${browser_version} Safari/537.36`
|
ua = `Mozilla/5.0 (Windows NT 10.0; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${browser_version} Safari/537.36`
|
||||||
|
|
||||||
// copied from a firefox private browsing window
|
// copied from a firefox private browsing window
|
||||||
|
@ -30,16 +30,10 @@ export default translator({
|
||||||
"X-Super-Properties": Buffer.from(
|
"X-Super-Properties": Buffer.from(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
os: "Windows",
|
os: "Windows",
|
||||||
browser: "Chrome",
|
browser: "Discord Client",
|
||||||
device: "",
|
os_arch: "x64",
|
||||||
system_locale: "en-US",
|
system_locale: "en-US",
|
||||||
browser_user_agent: ua,
|
os_version: "10.0.22621",
|
||||||
browser_version,
|
|
||||||
os_version: "10",
|
|
||||||
referrer: "",
|
|
||||||
referring_domain: "",
|
|
||||||
referrer_current: "",
|
|
||||||
referring_domain_current: "",
|
|
||||||
release_channel: "stable",
|
release_channel: "stable",
|
||||||
client_build_number,
|
client_build_number,
|
||||||
client_event_source: null,
|
client_event_source: null,
|
||||||
|
|
|
@ -49,9 +49,9 @@ export default translator({
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${apiKey}`,
|
Authorization: `Bearer ${apiKey}`,
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
method: "POST",
|
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ avatarId }),
|
body: JSON.stringify({ avatarId }),
|
||||||
|
method: "POST",
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!updateRequest.ok)
|
if (!updateRequest.ok)
|
||||||
|
|
Loading…
Reference in a new issue