Skip to content

Commit

Permalink
fix(Options): remove unused ws properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Qjuh committed Apr 25, 2023
1 parent e903bfa commit 7b86b71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions packages/discord.js/src/util/Options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

const process = require('node:process');
const { DefaultRestOptions, DefaultUserAgentAppendix } = require('@discordjs/rest');
const { toSnakeCase } = require('./Transformers');
const { version } = require('../../package.json');
Expand Down Expand Up @@ -106,11 +105,6 @@ class Options extends null {
sweepers: this.DefaultSweeperSettings,
ws: {
large_threshold: 50,
properties: {
os: process.platform,
browser: 'discord.js',
device: 'discord.js',
},
version: 10,
},
rest: {
Expand Down
7 changes: 0 additions & 7 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6304,17 +6304,10 @@ export interface WebhookMessageCreateOptions extends Omit<MessageCreateOptions,

export interface WebSocketOptions {
large_threshold?: number;
properties?: WebSocketProperties;
version?: number;
buildStrategy?(manager: WSWebSocketManager): IShardingStrategy;
}

export interface WebSocketProperties {
os?: string;
browser?: string;
device?: string;
}

export interface WidgetActivity {
name: string;
}
Expand Down

0 comments on commit 7b86b71

Please sign in to comment.