mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore(Constants): update large_threshold default (#4698)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user