From b37bf5dcbed321fd1b1b06595e2a4f94be3c8123 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Fri, 17 May 2024 22:41:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20feat:=20identify=20prop?= =?UTF-8?q?erties=20doesnt=20need=20dollar=20sign($)=20anymore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gateway/mod.ts | 6 +++--- src/types/gateway.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gateway/mod.ts b/src/gateway/mod.ts index 143d527c..9837ef33 100644 --- a/src/gateway/mod.ts +++ b/src/gateway/mod.ts @@ -342,9 +342,9 @@ export class Gateway extends HarmonyEventEmitter { const payload: IdentityPayload = { token: this.client.token, properties: { - $os: this.client.clientProperties.os ?? Deno.build.os, - $browser: this.client.clientProperties.browser ?? 'harmony', - $device: this.client.clientProperties.device ?? 'harmony' + os: this.client.clientProperties.os ?? Deno.build.os, + browser: this.client.clientProperties.browser ?? 'harmony', + device: this.client.clientProperties.device ?? 'harmony' }, compress: this.client.compress, shard: diff --git a/src/types/gateway.ts b/src/types/gateway.ts index 732b4cba..4c1facf1 100644 --- a/src/types/gateway.ts +++ b/src/types/gateway.ts @@ -138,11 +138,11 @@ export interface IdentityPayload { } export interface IdentityConnection { - $os: 'darwin' | 'windows' | 'linux' | 'custom os' | string - $browser: 'harmony' | 'Firefox' | string - $device: 'harmony' | string - $referrer?: '' | string - $referring_domain?: '' | string + os: 'darwin' | 'windows' | 'linux' | 'custom os' | string + browser: 'harmony' | 'Firefox' | string + device: 'harmony' | string + referrer?: '' | string + referring_domain?: '' | string } export interface Resume {