mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
chore(Constants): update large_threshold default (#4698)
This commit is contained in:
parent
139e56c774
commit
f991bd46f3
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue