Skip to content

Commit

Permalink
docs(WebSocketOptions): add version to docs and typings (#8050)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored Jun 17, 2022
1 parent d54bf5d commit 386c41f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/discord.js/src/util/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const { toSnakeCase } = require('./Transformers');
* @typedef {Object} WebsocketOptions
* @property {number} [large_threshold=50] Number of members in a guild after which offline users will no longer be
* sent in the initial guild member list, must be between 50 and 250
* @property {number} [version=10] The Discord gateway version to use <warn>Changing this can break the library;
* only set this if you know what you are doing</warn>
*/

/**
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5338,6 +5338,7 @@ export interface WebSocketOptions {
large_threshold?: number;
compress?: boolean;
properties?: WebSocketProperties;
version?: number;
}

export interface WebSocketProperties {
Expand Down

0 comments on commit 386c41f

Please sign in to comment.