chore(Constants): update large_threshold default (#4698)

This commit is contained in:
Advaith
2020-08-13 11:38:59 -07:00
committed by GitHub
parent 139e56c774
commit f991bd46f3
2 changed files with 3 additions and 3 deletions

View File

@@ -155,7 +155,7 @@ class Guild extends Base {
this.memberCount = data.member_count || this.memberCount;
/**
* Whether the guild is "large" (has more than 250 members)
* Whether the guild is "large" (has more than large_threshold members, 50 by default)
* @type {boolean}
*/
this.large = Boolean('large' in data ? data.large : this.large);

View File

@@ -56,12 +56,12 @@ exports.DefaultOptions = {
/**
* WebSocket options (these are left as snake_case to match the API)
* @typedef {Object} WebsocketOptions
* @property {number} [large_threshold=250] Number of members in a guild after which offline users will no longer be
* @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 {IntentsResolvable} [intents] Intents to enable for this connection
*/
ws: {
large_threshold: 250,
large_threshold: 50,
compress: false,
properties: {
$os: browser ? 'browser' : process.platform,