Skip to content

Commit

Permalink
🏷️ feat: identify properties doesnt need dollar sign($) anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Helloyunho committed May 17, 2024
1 parent 027a8f8 commit b37bf5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/gateway/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
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:
Expand Down
10 changes: 5 additions & 5 deletions src/types/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b37bf5d

Please sign in to comment.