From f991bd46f328445acd72c8dbaf5bd062d92082a1 Mon Sep 17 00:00:00 2001 From: Advaith Date: Thu, 13 Aug 2020 11:38:59 -0700 Subject: [PATCH] chore(Constants): update large_threshold default (#4698) --- src/structures/Guild.js | 2 +- src/util/Constants.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index cd83f5a44..91245fd9c 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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); diff --git a/src/util/Constants.js b/src/util/Constants.js index a94d9606f..63b5faef4 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -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,