From 833fb428277b866c2d1b6b73bc582f93e21fe52d Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Wed, 25 Oct 2023 16:39:00 -0700 Subject: [PATCH] client User-Agent property --- src/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 3625064..925527c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -17,6 +17,8 @@ export class Client { public auth?: string; + public agent: string = "pecans"; + public get messages(): MessagesModule { return this.#messages; } @@ -75,7 +77,7 @@ export class Client { headers: { "Content-Type": "application/json", "Cookie": "twocansandstring_com_auth2=" + this.auth, - "User-Agent": "pecans", + "User-Agent": this.agent, }, body: JSON.stringify(body), };