Skip to content

Commit

Permalink
refactor: deprecate $ prefix from ws.properties keys (#8095)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Jun 17, 2022
1 parent 0ab2227 commit 3638b40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/Options.js
Expand Up @@ -157,9 +157,9 @@ class Options extends null {
large_threshold: 50,
compress: false,
properties: {
$os: process.platform,
$browser: 'discord.js',
$device: 'discord.js',
os: process.platform,
browser: 'discord.js',
device: 'discord.js',
},
version: 9,
},
Expand Down
6 changes: 6 additions & 0 deletions typings/index.d.ts
Expand Up @@ -6016,8 +6016,14 @@ export interface WebSocketOptions {
}

export interface WebSocketProperties {
os?: string;
browser?: string;
device?: string;
/** @deprecated Use {@link os} instead. */
$os?: string;
/** @deprecated Use {@link browser} instead. */
$browser?: string;
/** @deprecated Use {@link device} instead. */
$device?: string;
}

Expand Down

0 comments on commit 3638b40

Please sign in to comment.