From 0c2ef399f831f14dc284d962ffc9ad22c01c9286 Mon Sep 17 00:00:00 2001 From: nin0 Date: Fri, 16 Aug 2024 01:25:48 -0400 Subject: [PATCH] =?UTF-8?q?=E2=80=9Cthis=20is=20horrific=E2=80=9D=20-=20ru?= =?UTF-8?q?sher=202024?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/discordrequests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/discordrequests.cpp b/utils/discordrequests.cpp index c3f95f3..5990bf6 100644 --- a/utils/discordrequests.cpp +++ b/utils/discordrequests.cpp @@ -3,7 +3,7 @@ DiscordRequests::DiscordRequests() {} QNetworkRequest DiscordRequests::buildRequest(QString endpoint, bool authenticated, bool json) { - QNetworkRequest request(QUrl("https://discord.com/api/v7/" + endpoint)); + QNetworkRequest request(QUrl("https://discord.com/api/v9/" + endpoint)); // set superprops/agent on Windows Chrome 122 to avoid raising flags request.setRawHeader("X-Super-Properties", "eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiQ2hyb21lIiwiZGV2aWNlIjoiIiwic3lzdGVtX2xvY2FsZSI6ImVuLUdCIiwiYnJvd3Nlcl91c2VyX2FnZW50IjoiTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEyMi4wLjAuMCBTYWZhcmkvNTM3LjM2IiwiYnJvd3Nlcl92ZXJzaW9uIjoiMTIyLjAuMC4wIiwib3NfdmVyc2lvbiI6IjEwIiwicmVmZXJyZXIiOiIiLCJyZWZlcnJpbmdfZG9tYWluIjoiIiwicmVmZXJyZXJfY3VycmVudCI6IiIsInJlZmVycmluZ19kb21haW5fY3VycmVudCI6IiIsInJlbGVhc2VfY2hhbm5lbCI6InN0YWJsZSIsImNsaWVudF9idWlsZF9udW1iZXIiOjMxODM2MSwiY2xpZW50X2V2ZW50X3NvdXJjZSI6bnVsbH0="); request.setRawHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36");