From 10ac0c6c6adf764406aaabacc57da1507677b1a0 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:59:40 +0700 Subject: [PATCH] Update APIRequest.js --- src/rest/APIRequest.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rest/APIRequest.js b/src/rest/APIRequest.js index a144ac7..ff39678 100644 --- a/src/rest/APIRequest.js +++ b/src/rest/APIRequest.js @@ -60,6 +60,11 @@ class APIRequest { 'User-Agent': this.client.options.http.headers['User-Agent'], Referer: 'https://discord.com/channels/@me', Connection: 'keep-alive', + 'sec-ch-ua-mobile': '?0', + 'sec-ch-ua-platform': 'Windows', + 'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="${ + /Chrome\/(\d+)/.exec(this.client.options.http.headers['User-Agent'])[1] + }"`, }; if (this.options.auth !== false) headers.Authorization = this.rest.getAuth();