docs(WebSocketOptions): add version to docs and typings (#8050)

This commit is contained in:
advaith
2022-06-17 14:26:08 -07:00
committed by GitHub
parent d54bf5d286
commit 386c41f24f
2 changed files with 3 additions and 0 deletions

View File

@@ -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>
*/
/**

View File

@@ -5338,6 +5338,7 @@ export interface WebSocketOptions {
large_threshold?: number;
compress?: boolean;
properties?: WebSocketProperties;
version?: number;
}
export interface WebSocketProperties {